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

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

Issue 720513003: Chromecast buildfix: satisfy new CreateZoomLevelDelegate API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « chromecast/browser/cast_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 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 base::CreateDirectory(path_); 70 base::CreateDirectory(path_);
71 #else 71 #else
72 // Chromecast doesn't support user profiles nor does it have 72 // Chromecast doesn't support user profiles nor does it have
73 // incognito mode. This means that all of the persistent 73 // incognito mode. This means that all of the persistent
74 // data (currently only cookies and local storage) will be 74 // data (currently only cookies and local storage) will be
75 // shared in a single location as defined here. 75 // shared in a single location as defined here.
76 CHECK(PathService::Get(DIR_CAST_HOME, &path_)); 76 CHECK(PathService::Get(DIR_CAST_HOME, &path_));
77 #endif // defined(OS_ANDROID) 77 #endif // defined(OS_ANDROID)
78 } 78 }
79 79
80 scoped_ptr<content::ZoomLevelDelegate>
81 CastBrowserContext::CreateZoomLevelDelegate(
82 const base::FilePath& partition_path) {
83 return nullptr;
84 }
85
80 base::FilePath CastBrowserContext::GetPath() const { 86 base::FilePath CastBrowserContext::GetPath() const {
81 return path_; 87 return path_;
82 } 88 }
83 89
84 bool CastBrowserContext::IsOffTheRecord() const { 90 bool CastBrowserContext::IsOffTheRecord() const {
85 return false; 91 return false;
86 } 92 }
87 93
88 net::URLRequestContextGetter* CastBrowserContext::GetRequestContext() { 94 net::URLRequestContextGetter* CastBrowserContext::GetRequestContext() {
89 return GetDefaultStoragePartition(this)->GetURLRequestContext(); 95 return GetDefaultStoragePartition(this)->GetURLRequestContext();
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 return NULL; 140 return NULL;
135 } 141 }
136 142
137 content::SSLHostStateDelegate* CastBrowserContext::GetSSLHostStateDelegate() { 143 content::SSLHostStateDelegate* CastBrowserContext::GetSSLHostStateDelegate() {
138 NOTIMPLEMENTED(); 144 NOTIMPLEMENTED();
139 return NULL; 145 return NULL;
140 } 146 }
141 147
142 } // namespace shell 148 } // namespace shell
143 } // namespace chromecast 149 } // namespace chromecast
OLDNEW
« no previous file with comments | « chromecast/browser/cast_browser_context.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698