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

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

Issue 165223003: Add a Restore() method to ValueStore and make StorageAPI use it (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 10 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/error_console/error_console.h" 10 #include "chrome/browser/extensions/error_console/error_console.h"
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 return state_store_.get(); 145 return state_store_.get();
146 } 146 }
147 147
148 InfoMap* TestExtensionSystem::info_map() { return info_map_.get(); } 148 InfoMap* TestExtensionSystem::info_map() { return info_map_.get(); }
149 149
150 LazyBackgroundTaskQueue* 150 LazyBackgroundTaskQueue*
151 TestExtensionSystem::lazy_background_task_queue() { 151 TestExtensionSystem::lazy_background_task_queue() {
152 return NULL; 152 return NULL;
153 } 153 }
154 154
155 EventRouter* TestExtensionSystem::event_router() { 155 void TestExtensionSystem::SetEventRouter(scoped_ptr<EventRouter> event_router) {
not at google - send to devlin 2014/02/19 21:25:29 event routers are free to construct. I think you s
Devlin 2014/02/19 23:12:28 EventRouter is free, but needs an ExtensionPrefs,
156 return NULL; 156 event_router_.reset(event_router.release());
157 } 157 }
158 158
159 EventRouter* TestExtensionSystem::event_router() { return event_router_.get(); }
160
159 ExtensionWarningService* TestExtensionSystem::warning_service() { 161 ExtensionWarningService* TestExtensionSystem::warning_service() {
160 return NULL; 162 return NULL;
161 } 163 }
162 164
163 Blacklist* TestExtensionSystem::blacklist() { 165 Blacklist* TestExtensionSystem::blacklist() {
164 return blacklist_.get(); 166 return blacklist_.get();
165 } 167 }
166 168
167 ErrorConsole* TestExtensionSystem::error_console() { 169 ErrorConsole* TestExtensionSystem::error_console() {
168 return error_console_.get(); 170 return error_console_.get();
(...skipping 11 matching lines...) Expand all
180 return ready_; 182 return ready_;
181 } 183 }
182 184
183 // static 185 // static
184 BrowserContextKeyedService* TestExtensionSystem::Build( 186 BrowserContextKeyedService* TestExtensionSystem::Build(
185 content::BrowserContext* profile) { 187 content::BrowserContext* profile) {
186 return new TestExtensionSystem(static_cast<Profile*>(profile)); 188 return new TestExtensionSystem(static_cast<Profile*>(profile));
187 } 189 }
188 190
189 } // namespace extensions 191 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698