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

Unified Diff: chrome/browser/extensions/installed_loader.cc

Issue 1351223003: Allow extensions to specify that they are not allowed in incognito mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add expectations for IncognitoInfo to test Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/extensions/extension_util.cc ('k') | extensions/browser/extension_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/installed_loader.cc
diff --git a/chrome/browser/extensions/installed_loader.cc b/chrome/browser/extensions/installed_loader.cc
index 9d562c44f0559078e12a74cd3c9683864bd62ed5..8ee9a02b32a4e57d932d7632c38820144ec3662a 100644
--- a/chrome/browser/extensions/installed_loader.cc
+++ b/chrome/browser/extensions/installed_loader.cc
@@ -28,6 +28,7 @@
#include "extensions/browser/extension_prefs.h"
#include "extensions/browser/extension_registry.h"
#include "extensions/browser/extension_system.h"
+#include "extensions/browser/extension_util.h"
#include "extensions/browser/management_policy.h"
#include "extensions/common/extension.h"
#include "extensions/common/extension_l10n_util.h"
@@ -511,7 +512,7 @@ void InstalledLoader::RecordExtensionsMetrics() {
// extensions are boring.
if (extension->ShouldDisplayInExtensionSettings() &&
!Manifest::IsPolicyLocation(extension->location())) {
- if (extension->can_be_incognito_enabled()) {
+ if (util::CanBeIncognitoEnabled(extension)) {
if (util::IsIncognitoEnabled(extension->id(), profile))
++incognito_allowed_count;
else
« no previous file with comments | « chrome/browser/extensions/extension_util.cc ('k') | extensions/browser/extension_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698