[Cronet] Delay StartNetLog and StopNetLog until native request context is initialized
[chromium-blink-merge.git] / chrome / test / data / extensions / platform_apps / extension_view / skeleton / main.js
blob49defede71c2364b2188265627f13f908f06a268
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 chrome.app.runtime.onEmbedRequested.addListener(function(request) {
6 if (!request.embedderId)
7 request.deny();
8 if (!request.data.foo) {
9 request.allow('main.html');
10 return;
11 } else if (request.data.foo == 'bar') {
12 request.deny();
13 } else if (request.data.foo == 'bleep') {
14 request.allow('main.html');
16 });