summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extension_process_manager.cc
diff options
context:
space:
mode:
authorakalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-06 22:07:35 +0000
committerakalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-06 22:07:35 +0000
commitc3cfb01fb895eb5a6063193456e51c2bb71a1e29 (patch)
tree1fd723d2b1fea517acbaf35f976e91bae9523caf /chrome/browser/extensions/extension_process_manager.cc
parent2831638398f9ab2b991009c1e380395758c98e60 (diff)
downloadchromium_src-c3cfb01fb895eb5a6063193456e51c2bb71a1e29.zip
chromium_src-c3cfb01fb895eb5a6063193456e51c2bb71a1e29.tar.gz
chromium_src-c3cfb01fb895eb5a6063193456e51c2bb71a1e29.tar.bz2
Refactor ExtensionService/ExtensionServiceInterface to be more testable
In particular: - Add various status accessors to ExtensionServiceInterface (e.g., IsExtensionEnabled()) - Convert IsIncognitoEnabled() to take an ID instead of an Extension*. - Add CheckForUpdates() to ExtensionServiceInterface. - Remove various unneeded accessors from ExtensionServiceInterface. Rewrite some sync utility functions to take advantage of the new interface (although it will be rewritten more in a future CL). BUG=77995 TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=80539 Review URL: http://codereview.chromium.org/6720042 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80705 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_process_manager.cc')
-rw-r--r--chrome/browser/extensions/extension_process_manager.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/extensions/extension_process_manager.cc b/chrome/browser/extensions/extension_process_manager.cc
index 8ff58e6f..a9a7e81 100644
--- a/chrome/browser/extensions/extension_process_manager.cc
+++ b/chrome/browser/extensions/extension_process_manager.cc
@@ -439,7 +439,7 @@ bool IncognitoExtensionProcessManager::IsIncognitoEnabled(
const Extension* extension) {
ExtensionService* service =
browsing_instance_->profile()->GetExtensionService();
- return service && service->IsIncognitoEnabled(extension);
+ return service && service->IsIncognitoEnabled(extension->id());
}
void IncognitoExtensionProcessManager::Observe(