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

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

Issue 1362043005: Add extensions code to use common updater in components/update_client/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merged latest origin/master Created 5 years, 2 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/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
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
OLDNEW
« no previous file with comments | « chrome/browser/extensions/test_extension_system.h ('k') | chrome/browser/extensions/updater/chrome_update_client_config.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698