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

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

Issue 10824204: Move small c/b/extensions classes into extensions namespace no.2 (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Latest master for cq + nitfix Created 8 years, 4 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
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"
11 11
12 namespace extensions {
13
12 ShellWindowRegistry::ShellWindowRegistry() {} 14 ShellWindowRegistry::ShellWindowRegistry() {}
13 15
14 ShellWindowRegistry::~ShellWindowRegistry() {} 16 ShellWindowRegistry::~ShellWindowRegistry() {}
15 17
16 // static 18 // static
17 ShellWindowRegistry* ShellWindowRegistry::Get(Profile* profile) { 19 ShellWindowRegistry* ShellWindowRegistry::Get(Profile* profile) {
18 return Factory::GetForProfile(profile); 20 return Factory::GetForProfile(profile);
19 } 21 }
20 22
21 void ShellWindowRegistry::AddShellWindow(ShellWindow* shell_window) { 23 void ShellWindowRegistry::AddShellWindow(ShellWindow* shell_window) {
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 return new ShellWindowRegistry(); 98 return new ShellWindowRegistry();
97 } 99 }
98 100
99 bool ShellWindowRegistry::Factory::ServiceIsCreatedWithProfile() { 101 bool ShellWindowRegistry::Factory::ServiceIsCreatedWithProfile() {
100 return true; 102 return true;
101 } 103 }
102 104
103 bool ShellWindowRegistry::Factory::ServiceIsNULLWhileTesting() { 105 bool ShellWindowRegistry::Factory::ServiceIsNULLWhileTesting() {
104 return false; 106 return false;
105 } 107 }
108
109 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/shell_window_registry.h ('k') | chrome/browser/extensions/startup_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698