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

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

Issue 195813007: Remove ExtensionService::IsExternalExtensionUninstalled() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Latest master Created 6 years, 9 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 13defa34141b2e9e5bac39294fed10a4d4b34dbf..dc68f7aaa01395436b9f7f5adc616fd631c5d8a3 100644
--- a/chrome/browser/extensions/extension_service.cc
+++ b/chrome/browser/extensions/extension_service.cc
@@ -362,7 +362,7 @@ ExtensionService::ExtensionService(Profile* profile,
blacklist_(blacklist),
extension_sync_service_(NULL),
registry_(extensions::ExtensionRegistry::Get(profile)),
- pending_extension_manager_(*this),
+ pending_extension_manager_(*this, profile),
install_directory_(install_directory),
extensions_enabled_(extensions_enabled),
show_extensions_prompts_(true),
@@ -951,11 +951,6 @@ bool ExtensionService::IsExtensionEnabled(
!extension_prefs_->IsExternalExtensionUninstalled(extension_id);
}
-bool ExtensionService::IsExternalExtensionUninstalled(
- const std::string& extension_id) const {
- return extension_prefs_->IsExternalExtensionUninstalled(extension_id);
-}
-
void ExtensionService::EnableExtension(const std::string& extension_id) {
CHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
@@ -2122,7 +2117,7 @@ void ExtensionService::OnExtensionInstalled(
// We explicitly want to re-enable an uninstalled external
// extension; if we're here, that means the user is manually
// installing the extension.
- if (IsExternalExtensionUninstalled(id)) {
+ if (extension_prefs_->IsExternalExtensionUninstalled(id)) {
initial_enable = true;
}
}
« no previous file with comments | « chrome/browser/extensions/extension_service.h ('k') | chrome/browser/extensions/extension_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698