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

Side by Side Diff: chrome/browser/extensions/shell_window_registry.cc

Issue 10908088: Cleanup: Constify some ProfileKeyedBaseFactory methods and all overrides. Remove ProfileKeyedBaseFa… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: rebase, remove a few more lines of code Created 8 years, 3 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/extensions/shell_window_registry.h" 5 #include "chrome/browser/extensions/shell_window_registry.h"
6 #include "chrome/browser/profiles/profile_dependency_manager.h" 6 #include "chrome/browser/profiles/profile_dependency_manager.h"
7 #include "chrome/browser/ui/extensions/shell_window.h" 7 #include "chrome/browser/ui/extensions/shell_window.h"
8 #include "chrome/common/extensions/extension.h" 8 #include "chrome/common/extensions/extension.h"
9 #include "content/public/browser/render_view_host.h" 9 #include "content/public/browser/render_view_host.h"
10 #include "content/public/browser/web_contents.h" 10 #include "content/public/browser/web_contents.h"
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 } 105 }
106 106
107 ShellWindowRegistry::Factory::~Factory() { 107 ShellWindowRegistry::Factory::~Factory() {
108 } 108 }
109 109
110 ProfileKeyedService* ShellWindowRegistry::Factory::BuildServiceInstanceFor( 110 ProfileKeyedService* ShellWindowRegistry::Factory::BuildServiceInstanceFor(
111 Profile* profile) const { 111 Profile* profile) const {
112 return new ShellWindowRegistry(); 112 return new ShellWindowRegistry();
113 } 113 }
114 114
115 bool ShellWindowRegistry::Factory::ServiceIsCreatedWithProfile() { 115 bool ShellWindowRegistry::Factory::ServiceIsCreatedWithProfile() const {
116 return true; 116 return true;
117 } 117 }
118 118
119 bool ShellWindowRegistry::Factory::ServiceIsNULLWhileTesting() { 119 bool ShellWindowRegistry::Factory::ServiceIsNULLWhileTesting() const {
120 return false; 120 return false;
121 } 121 }
122 122
123 } // namespace extensions 123 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/shell_window_registry.h ('k') | chrome/browser/favicon/favicon_service_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698