Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(868)

Side by Side Diff: chrome/renderer/extensions/chrome_extensions_dispatcher_delegate.cc

Issue 564993002: Embedded Extension Options: remove flags and trunk channel restrictions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/renderer/extensions/chrome_extensions_dispatcher_delegate.h" 5 #include "chrome/renderer/extensions/chrome_extensions_dispatcher_delegate.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/sha1.h" 8 #include "base/sha1.h"
9 #include "base/strings/string_number_conversions.h" 9 #include "base/strings/string_number_conversions.h"
10 #include "chrome/common/chrome_switches.h" 10 #include "chrome/common/chrome_switches.h"
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 module_system->Require("denyWebView"); 280 module_system->Require("denyWebView");
281 } 281 }
282 282
283 if (extensions::FeatureSwitch::app_view()->IsEnabled() && 283 if (extensions::FeatureSwitch::app_view()->IsEnabled() &&
284 context->GetAvailability("appViewEmbedderInternal").is_available()) { 284 context->GetAvailability("appViewEmbedderInternal").is_available()) {
285 module_system->Require("appView"); 285 module_system->Require("appView");
286 } else if (context_type == extensions::Feature::BLESSED_EXTENSION_CONTEXT) { 286 } else if (context_type == extensions::Feature::BLESSED_EXTENSION_CONTEXT) {
287 module_system->Require("denyAppView"); 287 module_system->Require("denyAppView");
288 } 288 }
289 289
290 if (extensions::FeatureSwitch::embedded_extension_options()->IsEnabled() && 290 if (context->GetAvailability("extensionOptionsInternal").is_available()) {
291 context->GetAvailability("extensionOptionsInternal").is_available()) {
292 module_system->Require("extensionOptions"); 291 module_system->Require("extensionOptions");
293 } 292 }
294 } 293 }
295 294
296 void ChromeExtensionsDispatcherDelegate::OnActiveExtensionsUpdated( 295 void ChromeExtensionsDispatcherDelegate::OnActiveExtensionsUpdated(
297 const std::set<std::string>& extension_ids) { 296 const std::set<std::string>& extension_ids) {
298 // In single-process mode, the browser process reports the active extensions. 297 // In single-process mode, the browser process reports the active extensions.
299 if (CommandLine::ForCurrentProcess()->HasSwitch(::switches::kSingleProcess)) 298 if (CommandLine::ForCurrentProcess()->HasSwitch(::switches::kSingleProcess))
300 return; 299 return;
301 crash_keys::SetActiveExtensions(extension_ids); 300 crash_keys::SetActiveExtensions(extension_ids);
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 new extensions::PermissionSet(extensions::APIPermissionSet(), 345 new extensions::PermissionSet(extensions::APIPermissionSet(),
347 extensions::ManifestPermissionSet(), 346 extensions::ManifestPermissionSet(),
348 origin_set, 347 origin_set,
349 extensions::URLPatternSet())); 348 extensions::URLPatternSet()));
350 } 349 }
351 350
352 void ChromeExtensionsDispatcherDelegate::HandleWebRequestAPIUsage( 351 void ChromeExtensionsDispatcherDelegate::HandleWebRequestAPIUsage(
353 bool webrequest_used) { 352 bool webrequest_used) {
354 webrequest_used_ = webrequest_used; 353 webrequest_used_ = webrequest_used;
355 } 354 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698