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

Side by Side Diff: chromecast/browser/cast_browser_context.cc

Issue 2874833002: Don't compile code for desktop zoom or GuestViews on mobile platforms. (Closed)
Patch Set: Rebase. 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
« no previous file with comments | « chromecast/browser/cast_browser_context.h ('k') | components/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "chromecast/browser/cast_browser_context.h" 5 #include "chromecast/browser/cast_browser_context.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/files/file_util.h" 8 #include "base/files/file_util.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/path_service.h" 10 #include "base/path_service.h"
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 #else 74 #else
75 // Chromecast doesn't support user profiles nor does it have 75 // Chromecast doesn't support user profiles nor does it have
76 // incognito mode. This means that all of the persistent 76 // incognito mode. This means that all of the persistent
77 // data (currently only cookies and local storage) will be 77 // data (currently only cookies and local storage) will be
78 // shared in a single location as defined here. 78 // shared in a single location as defined here.
79 CHECK(PathService::Get(DIR_CAST_HOME, &path_)); 79 CHECK(PathService::Get(DIR_CAST_HOME, &path_));
80 #endif // defined(OS_ANDROID) 80 #endif // defined(OS_ANDROID)
81 BrowserContext::Initialize(this, path_); 81 BrowserContext::Initialize(this, path_);
82 } 82 }
83 83
84 #if !defined(OS_ANDROID)
84 std::unique_ptr<content::ZoomLevelDelegate> 85 std::unique_ptr<content::ZoomLevelDelegate>
85 CastBrowserContext::CreateZoomLevelDelegate( 86 CastBrowserContext::CreateZoomLevelDelegate(
86 const base::FilePath& partition_path) { 87 const base::FilePath& partition_path) {
87 return nullptr; 88 return nullptr;
88 } 89 }
90 #endif // !defined(OS_ANDROID)
89 91
90 base::FilePath CastBrowserContext::GetPath() const { 92 base::FilePath CastBrowserContext::GetPath() const {
91 return path_; 93 return path_;
92 } 94 }
93 95
94 bool CastBrowserContext::IsOffTheRecord() const { 96 bool CastBrowserContext::IsOffTheRecord() const {
95 return false; 97 return false;
96 } 98 }
97 99
98 net::URLRequestContextGetter* CastBrowserContext::GetSystemRequestContext() { 100 net::URLRequestContextGetter* CastBrowserContext::GetSystemRequestContext() {
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 } 158 }
157 159
158 net::URLRequestContextGetter* 160 net::URLRequestContextGetter*
159 CastBrowserContext::CreateMediaRequestContextForStoragePartition( 161 CastBrowserContext::CreateMediaRequestContextForStoragePartition(
160 const base::FilePath& partition_path, bool in_memory) { 162 const base::FilePath& partition_path, bool in_memory) {
161 return nullptr; 163 return nullptr;
162 } 164 }
163 165
164 } // namespace shell 166 } // namespace shell
165 } // namespace chromecast 167 } // namespace chromecast
OLDNEW
« no previous file with comments | « chromecast/browser/cast_browser_context.h ('k') | components/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698