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

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: Rebase. Created 3 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
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/single_thread_task_runner.h" 10 #include "base/single_thread_task_runner.h"
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 if (!request_context_.get()) { 72 if (!request_context_.get()) {
73 request_context_ = new TestContextURLRequestContextGetter(); 73 request_context_ = new TestContextURLRequestContextGetter();
74 } 74 }
75 return request_context_.get(); 75 return request_context_.get();
76 } 76 }
77 77
78 base::FilePath TestBrowserContext::GetPath() const { 78 base::FilePath TestBrowserContext::GetPath() const {
79 return browser_context_dir_.GetPath(); 79 return browser_context_dir_.GetPath();
80 } 80 }
81 81
82 #if !defined(OS_ANDROID)
82 std::unique_ptr<ZoomLevelDelegate> TestBrowserContext::CreateZoomLevelDelegate( 83 std::unique_ptr<ZoomLevelDelegate> TestBrowserContext::CreateZoomLevelDelegate(
83 const base::FilePath& partition_path) { 84 const base::FilePath& partition_path) {
84 return std::unique_ptr<ZoomLevelDelegate>(); 85 return std::unique_ptr<ZoomLevelDelegate>();
85 } 86 }
87 #endif // !defined(OS_ANDROID)
86 88
87 bool TestBrowserContext::IsOffTheRecord() const { 89 bool TestBrowserContext::IsOffTheRecord() const {
88 return is_off_the_record_; 90 return is_off_the_record_;
89 } 91 }
90 92
91 DownloadManagerDelegate* TestBrowserContext::GetDownloadManagerDelegate() { 93 DownloadManagerDelegate* TestBrowserContext::GetDownloadManagerDelegate() {
92 return NULL; 94 return NULL;
93 } 95 }
94 96
95 ResourceContext* TestBrowserContext::GetResourceContext() { 97 ResourceContext* TestBrowserContext::GetResourceContext() {
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 } 150 }
149 151
150 net::URLRequestContextGetter* 152 net::URLRequestContextGetter*
151 TestBrowserContext::CreateMediaRequestContextForStoragePartition( 153 TestBrowserContext::CreateMediaRequestContextForStoragePartition(
152 const base::FilePath& partition_path, 154 const base::FilePath& partition_path,
153 bool in_memory) { 155 bool in_memory) {
154 return NULL; 156 return NULL;
155 } 157 }
156 158
157 } // namespace content 159 } // 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