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

Unified Diff: chrome/browser/extensions/shell_window_registry.cc

Issue 14141006: [components] Switch {RefCounted}ProfileKeyedService to use BrowserContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: for review 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/shell_window_registry.cc
diff --git a/chrome/browser/extensions/shell_window_registry.cc b/chrome/browser/extensions/shell_window_registry.cc
index 2b5d3b0212b711527ad76f473971844c08fa80d0..0b284849c162091932fb641e45b2d012179268c8 100644
--- a/chrome/browser/extensions/shell_window_registry.cc
+++ b/chrome/browser/extensions/shell_window_registry.cc
@@ -241,8 +241,8 @@ ShellWindowRegistry::Factory::~Factory() {
}
ProfileKeyedService* ShellWindowRegistry::Factory::BuildServiceInstanceFor(
- Profile* profile) const {
- return new ShellWindowRegistry(profile);
+ content::BrowserContext* profile) const {
+ return new ShellWindowRegistry(static_cast<Profile*>(profile));
}
bool ShellWindowRegistry::Factory::ServiceIsCreatedWithProfile() const {

Powered by Google App Engine
This is Rietveld 408576698