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

Unified Diff: chrome/browser/ui/gtk/location_bar_view_gtk.cc

Issue 11820041: Remove profile-keyed factory boilerplates. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/gtk/location_bar_view_gtk.cc
diff --git a/chrome/browser/ui/gtk/location_bar_view_gtk.cc b/chrome/browser/ui/gtk/location_bar_view_gtk.cc
index caca2113eb2e440636881c4a215970d0d164004d..2ecbcebd2c8ba7c983e0cc115337a90a9dc4b002 100644
--- a/chrome/browser/ui/gtk/location_bar_view_gtk.cc
+++ b/chrome/browser/ui/gtk/location_bar_view_gtk.cc
@@ -25,7 +25,6 @@
#include "chrome/browser/content_settings/tab_specific_content_settings.h"
#include "chrome/browser/defaults.h"
#include "chrome/browser/extensions/api/commands/command_service.h"
-#include "chrome/browser/extensions/api/commands/command_service_factory.h"
#include "chrome/browser/extensions/api/omnibox/omnibox_api.h"
#include "chrome/browser/extensions/extension_action.h"
#include "chrome/browser/extensions/extension_service.h"
@@ -2000,8 +1999,7 @@ void LocationBarViewGtk::PageActionViewGtk::ConnectPageActionAccelerator() {
window_ = owner_->browser()->window()->GetNativeWindow();
extensions::CommandService* command_service =
- extensions::CommandServiceFactory::GetForProfile(
- owner_->browser()->profile());
+ extensions::CommandService::Get(owner_->browser()->profile());
extensions::Command command_page_action;
if (command_service->GetPageActionCommand(

Powered by Google App Engine
This is Rietveld 408576698