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

Side by Side Diff: content/shell/browser/shell_browser_context.cc

Issue 393133002: Migrate HostZoomMap to live in StoragePartition. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments; patch for landing. Created 6 years, 1 month 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
« no previous file with comments | « content/shell/browser/shell_browser_context.h ('k') | no next file » | 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 "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/environment.h" 9 #include "base/environment.h"
10 #include "base/files/file_util.h" 10 #include "base/files/file_util.h"
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 CHECK(PathService::Get(base::DIR_ANDROID_APP_DATA, &path_)); 88 CHECK(PathService::Get(base::DIR_ANDROID_APP_DATA, &path_));
89 path_ = path_.Append(FILE_PATH_LITERAL("content_shell")); 89 path_ = path_.Append(FILE_PATH_LITERAL("content_shell"));
90 #else 90 #else
91 NOTIMPLEMENTED(); 91 NOTIMPLEMENTED();
92 #endif 92 #endif
93 93
94 if (!base::PathExists(path_)) 94 if (!base::PathExists(path_))
95 base::CreateDirectory(path_); 95 base::CreateDirectory(path_);
96 } 96 }
97 97
98 scoped_ptr<ZoomLevelDelegate> ShellBrowserContext::CreateZoomLevelDelegate(
99 const base::FilePath&) {
100 return scoped_ptr<ZoomLevelDelegate>();
101 }
102
98 base::FilePath ShellBrowserContext::GetPath() const { 103 base::FilePath ShellBrowserContext::GetPath() const {
99 return path_; 104 return path_;
100 } 105 }
101 106
102 bool ShellBrowserContext::IsOffTheRecord() const { 107 bool ShellBrowserContext::IsOffTheRecord() const {
103 return off_the_record_; 108 return off_the_record_;
104 } 109 }
105 110
106 DownloadManagerDelegate* ShellBrowserContext::GetDownloadManagerDelegate() { 111 DownloadManagerDelegate* ShellBrowserContext::GetDownloadManagerDelegate() {
107 if (!download_manager_delegate_.get()) { 112 if (!download_manager_delegate_.get()) {
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 193
189 PushMessagingService* ShellBrowserContext::GetPushMessagingService() { 194 PushMessagingService* ShellBrowserContext::GetPushMessagingService() {
190 return NULL; 195 return NULL;
191 } 196 }
192 197
193 SSLHostStateDelegate* ShellBrowserContext::GetSSLHostStateDelegate() { 198 SSLHostStateDelegate* ShellBrowserContext::GetSSLHostStateDelegate() {
194 return NULL; 199 return NULL;
195 } 200 }
196 201
197 } // namespace content 202 } // namespace content
OLDNEW
« no previous file with comments | « content/shell/browser/shell_browser_context.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698