| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/menu_manager_factory.h" | 5 #include "chrome/browser/extensions/menu_manager_factory.h" |
| 6 | 6 |
| 7 #include "chrome/browser/extensions/extension_system.h" | |
| 8 #include "chrome/browser/extensions/extension_system_factory.h" | 7 #include "chrome/browser/extensions/extension_system_factory.h" |
| 9 #include "chrome/browser/extensions/menu_manager.h" | 8 #include "chrome/browser/extensions/menu_manager.h" |
| 10 #include "chrome/browser/profiles/incognito_helpers.h" | 9 #include "chrome/browser/profiles/incognito_helpers.h" |
| 11 #include "chrome/browser/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
| 12 #include "components/browser_context_keyed_service/browser_context_dependency_ma
nager.h" | 11 #include "components/browser_context_keyed_service/browser_context_dependency_ma
nager.h" |
| 12 #include "extensions/browser/extension_system.h" |
| 13 | 13 |
| 14 namespace extensions { | 14 namespace extensions { |
| 15 | 15 |
| 16 // static | 16 // static |
| 17 MenuManager* MenuManagerFactory::GetForProfile( | 17 MenuManager* MenuManagerFactory::GetForProfile( |
| 18 Profile* profile) { | 18 Profile* profile) { |
| 19 return static_cast<MenuManager*>( | 19 return static_cast<MenuManager*>( |
| 20 GetInstance()->GetServiceForBrowserContext(profile, true)); | 20 GetInstance()->GetServiceForBrowserContext(profile, true)); |
| 21 } | 21 } |
| 22 | 22 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 50 | 50 |
| 51 bool MenuManagerFactory::ServiceIsCreatedWithBrowserContext() const { | 51 bool MenuManagerFactory::ServiceIsCreatedWithBrowserContext() const { |
| 52 return true; | 52 return true; |
| 53 } | 53 } |
| 54 | 54 |
| 55 bool MenuManagerFactory::ServiceIsNULLWhileTesting() const { | 55 bool MenuManagerFactory::ServiceIsNULLWhileTesting() const { |
| 56 return true; | 56 return true; |
| 57 } | 57 } |
| 58 | 58 |
| 59 } // namespace extensions | 59 } // namespace extensions |
| OLD | NEW |