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

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

Issue 331743004: Always enable enhanced bookmarks external component extensions for incognito mode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: rebase Created 6 years, 6 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
Index: chrome/browser/extensions/extension_service.cc
diff --git a/chrome/browser/extensions/extension_service.cc b/chrome/browser/extensions/extension_service.cc
index f7450f36069b23d7b3baee48aa3b50f349c8550a..3053d76974de25f463d7f147b96d933b52d249b8 100644
--- a/chrome/browser/extensions/extension_service.cc
+++ b/chrome/browser/extensions/extension_service.cc
@@ -1984,6 +1984,9 @@ void ExtensionService::FinishInstallation(
extension_prefs_->SetAllowFileAccess(extension->id(), true);
}
+ if (extensions::util::EnableIncognitoByDefault(extension))
+ extension_prefs_->SetIsIncognitoEnabled(extension->id(), true);
not at google - send to devlin 2014/06/18 23:49:19 i don't think you need this code anymore
Mike Wittman 2014/06/19 00:21:49 Done.
+
AddExtension(extension);
// Notify observers that need to know when an installation is complete.
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_util.h » ('j') | chrome/browser/extensions/extension_util.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698