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

Unified Diff: chrome/browser/extensions/api/system_indicator/system_indicator_manager_factory.cc

Issue 14141006: [components] Switch {RefCounted}ProfileKeyedService to use BrowserContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: trybots 2 Created 7 years, 8 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/system_indicator/system_indicator_manager_factory.cc
diff --git a/chrome/browser/extensions/api/system_indicator/system_indicator_manager_factory.cc b/chrome/browser/extensions/api/system_indicator/system_indicator_manager_factory.cc
index b5b3ae78cf3e2bf978d474b68d008ac21ffe3af8..a21ee53b543d54c84c6a986ecf60732de41f8e08 100644
--- a/chrome/browser/extensions/api/system_indicator/system_indicator_manager_factory.cc
+++ b/chrome/browser/extensions/api/system_indicator/system_indicator_manager_factory.cc
@@ -7,6 +7,7 @@
#include "chrome/browser/browser_process.h"
#include "chrome/browser/extensions/api/system_indicator/system_indicator_manager.h"
#include "chrome/browser/extensions/extension_system_factory.h"
+#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/profiles/profile_dependency_manager.h"
namespace extensions {
@@ -32,13 +33,14 @@ SystemIndicatorManagerFactory::SystemIndicatorManagerFactory()
SystemIndicatorManagerFactory::~SystemIndicatorManagerFactory() {}
ProfileKeyedService* SystemIndicatorManagerFactory::BuildServiceInstanceFor(
- Profile* profile) const {
+ content::BrowserContext* profile) const {
StatusTray* status_tray = g_browser_process->status_tray();
if (status_tray == NULL)
return NULL;
- return new SystemIndicatorManager(profile, status_tray);
+ return new SystemIndicatorManager(static_cast<Profile*>(profile),
+ status_tray);
}
} // namespace extensions

Powered by Google App Engine
This is Rietveld 408576698