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

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

Issue 870163002: Move networking_private to src/extensions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix GN 2 Created 5 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 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 #include "extensions/browser/test_runtime_api_delegate.h"
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 if (context == main_context_) 65 if (context == main_context_)
66 return incognito_context_; 66 return incognito_context_;
67 return NULL; 67 return NULL;
68 } 68 }
69 69
70 BrowserContext* TestExtensionsBrowserClient::GetOriginalContext( 70 BrowserContext* TestExtensionsBrowserClient::GetOriginalContext(
71 BrowserContext* context) { 71 BrowserContext* context) {
72 return main_context_; 72 return main_context_;
73 } 73 }
74 74
75 #if defined(OS_CHROMEOS)
76 std::string TestExtensionsBrowserClient::GetUserIdHashFromContext(
77 content::BrowserContext* context) {
78 return "";
79 }
80 #endif
81
75 bool TestExtensionsBrowserClient::IsGuestSession( 82 bool TestExtensionsBrowserClient::IsGuestSession(
76 BrowserContext* context) const { 83 BrowserContext* context) const {
77 return false; 84 return false;
78 } 85 }
79 86
80 bool TestExtensionsBrowserClient::IsExtensionIncognitoEnabled( 87 bool TestExtensionsBrowserClient::IsExtensionIncognitoEnabled(
81 const std::string& extension_id, 88 const std::string& extension_id,
82 content::BrowserContext* context) const { 89 content::BrowserContext* context) const {
83 return false; 90 return false;
84 } 91 }
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 bool TestExtensionsBrowserClient::IsBackgroundUpdateAllowed() { 187 bool TestExtensionsBrowserClient::IsBackgroundUpdateAllowed() {
181 return true; 188 return true;
182 } 189 }
183 190
184 bool TestExtensionsBrowserClient::IsMinBrowserVersionSupported( 191 bool TestExtensionsBrowserClient::IsMinBrowserVersionSupported(
185 const std::string& min_version) { 192 const std::string& min_version) {
186 return true; 193 return true;
187 } 194 }
188 195
189 } // namespace extensions 196 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/browser/test_extensions_browser_client.h ('k') | extensions/common/api/_api_features.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698