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

Unified Diff: chrome/browser/ui/gtk/extensions/extension_installed_bubble_gtk.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/gtk/extensions/extension_installed_bubble_gtk.cc
diff --git a/chrome/browser/ui/gtk/extensions/extension_installed_bubble_gtk.cc b/chrome/browser/ui/gtk/extensions/extension_installed_bubble_gtk.cc
index 724f1a143b31fbe4c7c6b467d5691b4ada909f4e..12c562e911a111eb50db6ed376c9a99bb475c8ff 100644
--- a/chrome/browser/ui/gtk/extensions/extension_installed_bubble_gtk.cc
+++ b/chrome/browser/ui/gtk/extensions/extension_installed_bubble_gtk.cc
@@ -12,7 +12,6 @@
#include "base/message_loop.h"
#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_manager.h"
#include "chrome/browser/ui/browser.h"
@@ -247,8 +246,7 @@ void ExtensionInstalledBubbleGtk::ShowInternal() {
// Browser action label.
if (type_ == BROWSER_ACTION) {
extensions::CommandService* command_service =
- extensions::CommandServiceFactory::GetForProfile(
- browser_->profile());
+ extensions::CommandService::Get(browser_->profile());
extensions::Command browser_action_command;
GtkWidget* info_label;
if (!command_service->GetBrowserActionCommand(
@@ -271,8 +269,7 @@ void ExtensionInstalledBubbleGtk::ShowInternal() {
// Page action label.
if (type_ == PAGE_ACTION) {
extensions::CommandService* command_service =
- extensions::CommandServiceFactory::GetForProfile(
- browser_->profile());
+ extensions::CommandService::Get(browser_->profile());
extensions::Command page_action_command;
GtkWidget* info_label;
if (!command_service->GetPageActionCommand(

Powered by Google App Engine
This is Rietveld 408576698