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

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

Issue 8529001: Fix crash in ExtensionService::SetIsIncognitoEnabled. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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 2499bd4082c69a2e12e81de210a77d276acc9b2b..ef27a9ec750a25ca7de54b1d4a8ec343a60b7280 100644
--- a/chrome/browser/extensions/extension_service.cc
+++ b/chrome/browser/extensions/extension_service.cc
@@ -1456,7 +1456,7 @@ bool ExtensionService::IsIncognitoEnabled(
}
void ExtensionService::SetIsIncognitoEnabled(
- const std::string& extension_id, bool enabled) {
+ std::string extension_id, bool enabled) {
Finnur 2011/11/10 21:48:44 I wonder if people will be tempted to change this
const Extension* extension = GetInstalledExtension(extension_id);
if (extension && extension->location() == Extension::COMPONENT) {
// This shouldn't be called for component extensions.

Powered by Google App Engine
This is Rietveld 408576698