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

Side by Side Diff: content/public/test/test_browser_context.cc

Issue 330143002: Simplify geolocation permission request in the Content API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 6 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 (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 "content/public/test/test_browser_context.h" 5 #include "content/public/test/test_browser_context.h"
6 6
7 #include "base/files/file_path.h" 7 #include "base/files/file_path.h"
8 #include "base/test/null_task_runner.h" 8 #include "base/test/null_task_runner.h"
9 #include "content/public/test/mock_resource_context.h" 9 #include "content/public/test/mock_resource_context.h"
10 #include "net/url_request/url_request_context.h" 10 #include "net/url_request/url_request_context.h"
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 const GURL& origin) { 131 const GURL& origin) {
132 } 132 }
133 133
134 ResourceContext* TestBrowserContext::GetResourceContext() { 134 ResourceContext* TestBrowserContext::GetResourceContext() {
135 if (!resource_context_) 135 if (!resource_context_)
136 resource_context_.reset(new MockResourceContext( 136 resource_context_.reset(new MockResourceContext(
137 GetRequestContext()->GetURLRequestContext())); 137 GetRequestContext()->GetURLRequestContext()));
138 return resource_context_.get(); 138 return resource_context_.get();
139 } 139 }
140 140
141 GeolocationPermissionContext*
142 TestBrowserContext::GetGeolocationPermissionContext() {
143 return NULL;
144 }
145
146 BrowserPluginGuestManager* TestBrowserContext::GetGuestManager() { 141 BrowserPluginGuestManager* TestBrowserContext::GetGuestManager() {
147 return NULL; 142 return NULL;
148 } 143 }
149 144
150 quota::SpecialStoragePolicy* TestBrowserContext::GetSpecialStoragePolicy() { 145 quota::SpecialStoragePolicy* TestBrowserContext::GetSpecialStoragePolicy() {
151 return special_storage_policy_.get(); 146 return special_storage_policy_.get();
152 } 147 }
153 148
154 PushMessagingService* TestBrowserContext::GetPushMessagingService() { 149 PushMessagingService* TestBrowserContext::GetPushMessagingService() {
155 return NULL; 150 return NULL;
156 } 151 }
157 152
158 } // namespace content 153 } // namespace content
OLDNEW
« no previous file with comments | « content/public/test/test_browser_context.h ('k') | content/shell/browser/shell_browser_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698