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

Unified Diff: chrome/browser/ui/views/extensions/extension_installed_bubble.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/views/extensions/extension_installed_bubble.cc
diff --git a/chrome/browser/ui/views/extensions/extension_installed_bubble.cc b/chrome/browser/ui/views/extensions/extension_installed_bubble.cc
index e0ab37464d57e5baf03c324e8fbcfda33e08cb5b..25ea67669efd38df161ead5c63d98a7bc10229b3 100644
--- a/chrome/browser/ui/views/extensions/extension_installed_bubble.cc
+++ b/chrome/browser/ui/views/extensions/extension_installed_bubble.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/extensions/extension_install_ui.h"
@@ -151,8 +150,7 @@ class InstalledBubbleContent : public views::View,
switch (type_) {
case ExtensionInstalledBubble::BROWSER_ACTION: {
extensions::CommandService* command_service =
- extensions::CommandServiceFactory::GetForProfile(
- browser_->profile());
+ extensions::CommandService::Get(browser_->profile());
extensions::Command browser_action_command;
if (!command_service->GetBrowserActionCommand(
extension->id(),
@@ -180,8 +178,7 @@ class InstalledBubbleContent : public views::View,
}
case ExtensionInstalledBubble::PAGE_ACTION: {
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