summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extension_module.cc
diff options
context:
space:
mode:
authorakalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-05 23:03:32 +0000
committerakalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-05 23:03:32 +0000
commitb59d30e3ee737575acc850c897a6423f43d48163 (patch)
tree6915414d78aca69e6e1b64e4cc78cd74e5a81596 /chrome/browser/extensions/extension_module.cc
parented03bbb8535e8fe7df8b36d77140cd807c606251 (diff)
downloadchromium_src-b59d30e3ee737575acc850c897a6423f43d48163.zip
chromium_src-b59d30e3ee737575acc850c897a6423f43d48163.tar.gz
chromium_src-b59d30e3ee737575acc850c897a6423f43d48163.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= Review URL: http://codereview.chromium.org/6720042 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80539 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_module.cc')
-rw-r--r--chrome/browser/extensions/extension_module.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/extensions/extension_module.cc b/chrome/browser/extensions/extension_module.cc
index bb13067..a1c884b 100644
--- a/chrome/browser/extensions/extension_module.cc
+++ b/chrome/browser/extensions/extension_module.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -27,7 +27,7 @@ bool IsAllowedIncognitoAccessFunction::RunImpl() {
const Extension* extension = GetExtension();
result_.reset(Value::CreateBooleanValue(
- ext_service->IsIncognitoEnabled(extension)));
+ ext_service->IsIncognitoEnabled(extension->id())));
return true;
}