| 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/test_extension_system.h" | 5 #include "chrome/browser/extensions/test_extension_system.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/prefs/pref_service.h" | 8 #include "base/prefs/pref_service.h" |
| 9 #include "chrome/browser/extensions/blacklist.h" | 9 #include "chrome/browser/extensions/blacklist.h" |
| 10 #include "chrome/browser/extensions/chrome_app_sorting.h" | 10 #include "chrome/browser/extensions/chrome_app_sorting.h" |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 ContentVerifier* TestExtensionSystem::content_verifier() { | 120 ContentVerifier* TestExtensionSystem::content_verifier() { |
| 121 return NULL; | 121 return NULL; |
| 122 } | 122 } |
| 123 | 123 |
| 124 scoped_ptr<ExtensionSet> TestExtensionSystem::GetDependentExtensions( | 124 scoped_ptr<ExtensionSet> TestExtensionSystem::GetDependentExtensions( |
| 125 const Extension* extension) { | 125 const Extension* extension) { |
| 126 return extension_service()->shared_module_service()->GetDependentExtensions( | 126 return extension_service()->shared_module_service()->GetDependentExtensions( |
| 127 extension); | 127 extension); |
| 128 } | 128 } |
| 129 | 129 |
| 130 void TestExtensionSystem::InstallUpdate(const std::string& extension_id, |
| 131 const base::FilePath& temp_dir) { |
| 132 NOTREACHED(); |
| 133 } |
| 134 |
| 130 // static | 135 // static |
| 131 scoped_ptr<KeyedService> TestExtensionSystem::Build( | 136 scoped_ptr<KeyedService> TestExtensionSystem::Build( |
| 132 content::BrowserContext* profile) { | 137 content::BrowserContext* profile) { |
| 133 return make_scoped_ptr( | 138 return make_scoped_ptr( |
| 134 new TestExtensionSystem(static_cast<Profile*>(profile))); | 139 new TestExtensionSystem(static_cast<Profile*>(profile))); |
| 135 } | 140 } |
| 136 | 141 |
| 137 void TestExtensionSystem::RecreateAppSorting() { | 142 void TestExtensionSystem::RecreateAppSorting() { |
| 138 app_sorting_.reset(new ChromeAppSorting(profile_)); | 143 app_sorting_.reset(new ChromeAppSorting(profile_)); |
| 139 } | 144 } |
| 140 | 145 |
| 141 } // namespace extensions | 146 } // namespace extensions |
| OLD | NEW |