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

Unified Diff: chrome/browser/extensions/api/declarative_content/content_action.cc

Issue 290293002: clenaup: Removed deprecated GetInstalledExtension function from c/b/e/api (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 7 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/api/declarative_content/content_action.cc
diff --git a/chrome/browser/extensions/api/declarative_content/content_action.cc b/chrome/browser/extensions/api/declarative_content/content_action.cc
index cf279690d2b94a7b25da00590dddf69d7ab28e0b..751f8d53383c946c633b1ef23066a414675e8554 100644
--- a/chrome/browser/extensions/api/declarative_content/content_action.cc
+++ b/chrome/browser/extensions/api/declarative_content/content_action.cc
@@ -12,12 +12,11 @@
#include "chrome/browser/extensions/api/declarative_content/content_constants.h"
#include "chrome/browser/extensions/extension_action.h"
#include "chrome/browser/extensions/extension_action_manager.h"
-#include "chrome/browser/extensions/extension_service.h"
#include "chrome/browser/extensions/extension_tab_util.h"
#include "chrome/browser/profiles/profile.h"
#include "content/public/browser/invalidate_type.h"
#include "content/public/browser/web_contents.h"
-#include "extensions/browser/extension_system.h"
+#include "extensions/browser/extension_registry.h"
#include "extensions/common/extension.h"
namespace extensions {
@@ -83,9 +82,9 @@ class ShowPageAction : public ContentAction {
private:
static ExtensionAction* GetPageAction(Profile* profile,
const std::string& extension_id) {
- ExtensionService* service =
- ExtensionSystem::Get(profile)->extension_service();
- const Extension* extension = service->GetInstalledExtension(extension_id);
+ const Extension* extension =
+ ExtensionRegistry::Get(profile)
+ ->GetExtensionById(extension_id, ExtensionRegistry::EVERYTHING);
if (!extension)
return NULL;
return ExtensionActionManager::Get(profile)->GetPageAction(*extension);

Powered by Google App Engine
This is Rietveld 408576698