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

Side by Side Diff: content/shell/browser/shell_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 | « content/shell/browser/shell_browser_context.h ('k') | content/test/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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/shell/browser/shell_browser_context.h" 5 #include "content/shell/browser/shell_browser_context.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 path_ = path_.Append(FILE_PATH_LITERAL("content_shell")); 116 path_ = path_.Append(FILE_PATH_LITERAL("content_shell"));
117 #else 117 #else
118 NOTIMPLEMENTED(); 118 NOTIMPLEMENTED();
119 #endif 119 #endif
120 120
121 if (!base::PathExists(path_)) 121 if (!base::PathExists(path_))
122 base::CreateDirectory(path_); 122 base::CreateDirectory(path_);
123 BrowserContext::Initialize(this, path_); 123 BrowserContext::Initialize(this, path_);
124 } 124 }
125 125
126 #if !defined(OS_ANDROID)
126 std::unique_ptr<ZoomLevelDelegate> ShellBrowserContext::CreateZoomLevelDelegate( 127 std::unique_ptr<ZoomLevelDelegate> ShellBrowserContext::CreateZoomLevelDelegate(
127 const base::FilePath&) { 128 const base::FilePath&) {
128 return std::unique_ptr<ZoomLevelDelegate>(); 129 return std::unique_ptr<ZoomLevelDelegate>();
129 } 130 }
131 #endif // !defined(OS_ANDROID)
130 132
131 base::FilePath ShellBrowserContext::GetPath() const { 133 base::FilePath ShellBrowserContext::GetPath() const {
132 return path_; 134 return path_;
133 } 135 }
134 136
135 bool ShellBrowserContext::IsOffTheRecord() const { 137 bool ShellBrowserContext::IsOffTheRecord() const {
136 return off_the_record_; 138 return off_the_record_;
137 } 139 }
138 140
139 DownloadManagerDelegate* ShellBrowserContext::GetDownloadManagerDelegate() { 141 DownloadManagerDelegate* ShellBrowserContext::GetDownloadManagerDelegate() {
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 return permission_manager_.get(); 217 return permission_manager_.get();
216 } 218 }
217 219
218 BackgroundSyncController* ShellBrowserContext::GetBackgroundSyncController() { 220 BackgroundSyncController* ShellBrowserContext::GetBackgroundSyncController() {
219 if (!background_sync_controller_) 221 if (!background_sync_controller_)
220 background_sync_controller_.reset(new MockBackgroundSyncController()); 222 background_sync_controller_.reset(new MockBackgroundSyncController());
221 return background_sync_controller_.get(); 223 return background_sync_controller_.get();
222 } 224 }
223 225
224 } // namespace content 226 } // namespace content
OLDNEW
« no previous file with comments | « content/shell/browser/shell_browser_context.h ('k') | content/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698