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

Side by Side Diff: extensions/browser/test_extensions_browser_client.cc

Issue 264743014: Move chrome.runtime to //extensions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: prevent runtime impl from handling invalid update versions Created 6 years, 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "extensions/browser/test_extensions_browser_client.h" 5 #include "extensions/browser/test_extensions_browser_client.h"
6 6
7 #include "content/public/browser/browser_context.h" 7 #include "content/public/browser/browser_context.h"
8 #include "extensions/browser/app_sorting.h" 8 #include "extensions/browser/app_sorting.h"
9 #include "extensions/browser/extension_host_delegate.h" 9 #include "extensions/browser/extension_host_delegate.h"
10 #include "extensions/browser/test_runtime_api_delegate.h"
10 11
11 using content::BrowserContext; 12 using content::BrowserContext;
12 13
13 namespace extensions { 14 namespace extensions {
14 15
15 TestExtensionsBrowserClient::TestExtensionsBrowserClient( 16 TestExtensionsBrowserClient::TestExtensionsBrowserClient(
16 BrowserContext* main_context) 17 BrowserContext* main_context)
17 : main_context_(main_context), incognito_context_(NULL) { 18 : main_context_(main_context), incognito_context_(NULL) {
18 DCHECK(main_context_); 19 DCHECK(main_context_);
19 DCHECK(!main_context_->IsOffTheRecord()); 20 DCHECK(!main_context_->IsOffTheRecord());
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 ExtensionSystemProvider* 149 ExtensionSystemProvider*
149 TestExtensionsBrowserClient::GetExtensionSystemFactory() { 150 TestExtensionsBrowserClient::GetExtensionSystemFactory() {
150 // Tests requiring an extension system should override this function. 151 // Tests requiring an extension system should override this function.
151 NOTREACHED(); 152 NOTREACHED();
152 return NULL; 153 return NULL;
153 } 154 }
154 155
155 void TestExtensionsBrowserClient::RegisterExtensionFunctions( 156 void TestExtensionsBrowserClient::RegisterExtensionFunctions(
156 ExtensionFunctionRegistry* registry) const {} 157 ExtensionFunctionRegistry* registry) const {}
157 158
159 scoped_ptr<RuntimeAPIDelegate>
160 TestExtensionsBrowserClient::CreateRuntimeAPIDelegate(
161 content::BrowserContext* context) const {
162 return scoped_ptr<RuntimeAPIDelegate>(new TestRuntimeAPIDelegate());
163 }
164
158 } // namespace extensions 165 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/browser/test_extensions_browser_client.h ('k') | extensions/browser/test_runtime_api_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698