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

Unified Diff: chrome/browser/ui/views/location_bar/page_action_image_view.cc

Issue 11820041: Remove profile-keyed factory boilerplates. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 7 years, 11 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/ui/views/location_bar/page_action_image_view.cc
diff --git a/chrome/browser/ui/views/location_bar/page_action_image_view.cc b/chrome/browser/ui/views/location_bar/page_action_image_view.cc
index d6c2b9fc23c00579e92130e3c0525c348476a607..3d847f3df4107e9fdea4dd7b9eb9a29d0bd14388 100644
--- a/chrome/browser/ui/views/location_bar/page_action_image_view.cc
+++ b/chrome/browser/ui/views/location_bar/page_action_image_view.cc
@@ -6,7 +6,6 @@
#include "base/utf_string_conversions.h"
#include "chrome/browser/extensions/api/commands/command_service.h"
-#include "chrome/browser/extensions/api/commands/command_service_factory.h"
#include "chrome/browser/extensions/extension_action.h"
#include "chrome/browser/extensions/extension_action_icon_factory.h"
#include "chrome/browser/extensions/extension_action_manager.h"
@@ -60,8 +59,7 @@ PageActionImageView::PageActionImageView(LocationBarView* owner,
set_context_menu_controller(this);
extensions::CommandService* command_service =
- extensions::CommandServiceFactory::GetForProfile(
- browser_->profile());
+ extensions::CommandService::Get(browser_->profile());
extensions::Command page_action_command;
if (command_service->GetPageActionCommand(
extension->id(),

Powered by Google App Engine
This is Rietveld 408576698