Chromium Code Reviews| OLD | NEW |
|---|---|
| 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/native_shell_window.h" | |
|
stevenjb
2012/11/20 18:34:07
Unnecessary?
| |
| 7 #include "chrome/browser/ui/extensions/shell_window.h" | 8 #include "chrome/browser/ui/extensions/shell_window.h" |
| 8 #include "chrome/common/extensions/extension.h" | 9 #include "chrome/common/extensions/extension.h" |
| 9 #include "content/public/browser/notification_types.h" | 10 #include "content/public/browser/notification_types.h" |
| 10 #include "content/public/browser/render_view_host.h" | 11 #include "content/public/browser/render_view_host.h" |
| 11 #include "content/public/browser/web_contents.h" | 12 #include "content/public/browser/web_contents.h" |
| 12 | 13 |
| 13 namespace { | 14 namespace { |
| 14 | 15 |
| 15 // Create a key that identifies a ShellWindow in a RenderViewHost across App | 16 // Create a key that identifies a ShellWindow in a RenderViewHost across App |
| 16 // reloads. If the window was given an id in CreateParams, the key is the | 17 // reloads. If the window was given an id in CreateParams, the key is the |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 177 | 178 |
| 178 bool ShellWindowRegistry::Factory::ServiceIsCreatedWithProfile() const { | 179 bool ShellWindowRegistry::Factory::ServiceIsCreatedWithProfile() const { |
| 179 return true; | 180 return true; |
| 180 } | 181 } |
| 181 | 182 |
| 182 bool ShellWindowRegistry::Factory::ServiceIsNULLWhileTesting() const { | 183 bool ShellWindowRegistry::Factory::ServiceIsNULLWhileTesting() const { |
| 183 return false; | 184 return false; |
| 184 } | 185 } |
| 185 | 186 |
| 186 } // namespace extensions | 187 } // namespace extensions |
| OLD | NEW |