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

Unified Diff: chrome/browser/extensions/api/commands/commands.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/extensions/api/commands/commands.cc
diff --git a/chrome/browser/extensions/api/commands/commands.cc b/chrome/browser/extensions/api/commands/commands.cc
index 5b7902707f372acd027fd8a144cac881f3c41c8e..ebe8bada3c6824b0deeed5efa4ee1d7bb9dcc89d 100644
--- a/chrome/browser/extensions/api/commands/commands.cc
+++ b/chrome/browser/extensions/api/commands/commands.cc
@@ -5,7 +5,6 @@
#include "chrome/browser/extensions/api/commands/commands.h"
#include "chrome/browser/extensions/api/commands/command_service.h"
-#include "chrome/browser/extensions/api/commands/command_service_factory.h"
namespace {
@@ -26,7 +25,7 @@ bool GetAllCommandsFunction::RunImpl() {
ListValue* command_list = new ListValue();
extensions::CommandService* command_service =
- extensions::CommandServiceFactory::GetForProfile(profile_);
+ extensions::CommandService::Get(profile_);
extensions::Command browser_action;
bool active = false;

Powered by Google App Engine
This is Rietveld 408576698