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

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

Issue 2874833002: Don't compile code for desktop zoom or GuestViews on mobile platforms. (Closed)
Patch Set: Update CastBrowserContext Created 3 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
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 <utility> 7 #include <utility>
8 8
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/test/null_task_runner.h" 10 #include "base/test/null_task_runner.h"
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 if (!request_context_.get()) { 71 if (!request_context_.get()) {
72 request_context_ = new TestContextURLRequestContextGetter(); 72 request_context_ = new TestContextURLRequestContextGetter();
73 } 73 }
74 return request_context_.get(); 74 return request_context_.get();
75 } 75 }
76 76
77 base::FilePath TestBrowserContext::GetPath() const { 77 base::FilePath TestBrowserContext::GetPath() const {
78 return browser_context_dir_.GetPath(); 78 return browser_context_dir_.GetPath();
79 } 79 }
80 80
81 #if !defined(OS_ANDROID)
81 std::unique_ptr<ZoomLevelDelegate> TestBrowserContext::CreateZoomLevelDelegate( 82 std::unique_ptr<ZoomLevelDelegate> TestBrowserContext::CreateZoomLevelDelegate(
82 const base::FilePath& partition_path) { 83 const base::FilePath& partition_path) {
83 return std::unique_ptr<ZoomLevelDelegate>(); 84 return std::unique_ptr<ZoomLevelDelegate>();
84 } 85 }
86 #endif // !defined(OS_ANDROID)
85 87
86 bool TestBrowserContext::IsOffTheRecord() const { 88 bool TestBrowserContext::IsOffTheRecord() const {
87 return is_off_the_record_; 89 return is_off_the_record_;
88 } 90 }
89 91
90 DownloadManagerDelegate* TestBrowserContext::GetDownloadManagerDelegate() { 92 DownloadManagerDelegate* TestBrowserContext::GetDownloadManagerDelegate() {
91 return NULL; 93 return NULL;
92 } 94 }
93 95
94 ResourceContext* TestBrowserContext::GetResourceContext() { 96 ResourceContext* TestBrowserContext::GetResourceContext() {
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 } 149 }
148 150
149 net::URLRequestContextGetter* 151 net::URLRequestContextGetter*
150 TestBrowserContext::CreateMediaRequestContextForStoragePartition( 152 TestBrowserContext::CreateMediaRequestContextForStoragePartition(
151 const base::FilePath& partition_path, 153 const base::FilePath& partition_path,
152 bool in_memory) { 154 bool in_memory) {
153 return NULL; 155 return NULL;
154 } 156 }
155 157
156 } // namespace content 158 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698