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

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

Issue 195813007: Remove ExtensionService::IsExternalExtensionUninstalled() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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_sync_service.cc
diff --git a/chrome/browser/extensions/extension_sync_service.cc b/chrome/browser/extensions/extension_sync_service.cc
index 833a1ce4bac9d0b15ef932582e8a976d6d320170..2f28c50c8a823ca7ed985308e383c5486cafa1d8 100644
--- a/chrome/browser/extensions/extension_sync_service.cc
+++ b/chrome/browser/extensions/extension_sync_service.cc
@@ -387,7 +387,8 @@ bool ExtensionSyncService::ProcessExtensionSyncDataHelper(
// Extension from sync was uninstalled by the user as external extensions.
// Honor user choice and skip installation/enabling.
- if (extension_service_->IsExternalExtensionUninstalled(id)) {
+ if (extensions::ExtensionPrefs::Get(profile_)
+ ->IsExternalExtensionUninstalled(id)) {
LOG(WARNING) << "Extension with id " << id
<< " from sync was uninstalled as external extension";
return true;

Powered by Google App Engine
This is Rietveld 408576698