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

Side by Side Diff: android_webview/browser/aw_browser_context.cc

Issue 2874833002: Don't compile code for desktop zoom or GuestViews on mobile platforms. (Closed)
Patch Set: Update CastBrowserContext 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
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 "android_webview/browser/aw_browser_context.h" 5 #include "android_webview/browser/aw_browser_context.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "android_webview/browser/aw_browser_policy_connector.h" 9 #include "android_webview/browser/aw_browser_policy_connector.h"
10 #include "android_webview/browser/aw_form_database_service.h" 10 #include "android_webview/browser/aw_form_database_service.h"
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 browser_policy_connector_->GetPolicyService(), 265 browser_policy_connector_->GetPolicyService(),
266 browser_policy_connector_->GetHandlerList(), 266 browser_policy_connector_->GetHandlerList(),
267 policy::POLICY_LEVEL_MANDATORY))); 267 policy::POLICY_LEVEL_MANDATORY)));
268 pref_service_factory.set_read_error_callback(base::Bind(&HandleReadError)); 268 pref_service_factory.set_read_error_callback(base::Bind(&HandleReadError));
269 user_pref_service_ = pref_service_factory.Create(pref_registry); 269 user_pref_service_ = pref_service_factory.Create(pref_registry);
270 pref_change_registrar_.Init(user_pref_service_.get()); 270 pref_change_registrar_.Init(user_pref_service_.get());
271 271
272 user_prefs::UserPrefs::Set(this, user_pref_service_.get()); 272 user_prefs::UserPrefs::Set(this, user_pref_service_.get());
273 } 273 }
274 274
275 std::unique_ptr<content::ZoomLevelDelegate>
276 AwBrowserContext::CreateZoomLevelDelegate(
277 const base::FilePath& partition_path) {
278 return nullptr;
279 }
280
281 base::FilePath AwBrowserContext::GetPath() const { 275 base::FilePath AwBrowserContext::GetPath() const {
282 return context_storage_path_; 276 return context_storage_path_;
283 } 277 }
284 278
285 bool AwBrowserContext::IsOffTheRecord() const { 279 bool AwBrowserContext::IsOffTheRecord() const {
286 // Android WebView does not support off the record profile yet. 280 // Android WebView does not support off the record profile yet.
287 return false; 281 return false;
288 } 282 }
289 283
290 content::ResourceContext* AwBrowserContext::GetResourceContext() { 284 content::ResourceContext* AwBrowserContext::GetResourceContext() {
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
401 395
402 void AwBrowserContext::RebuildTable( 396 void AwBrowserContext::RebuildTable(
403 const scoped_refptr<URLEnumerator>& enumerator) { 397 const scoped_refptr<URLEnumerator>& enumerator) {
404 // Android WebView rebuilds from WebChromeClient.getVisitedHistory. The client 398 // Android WebView rebuilds from WebChromeClient.getVisitedHistory. The client
405 // can change in the lifetime of this WebView and may not yet be set here. 399 // can change in the lifetime of this WebView and may not yet be set here.
406 // Therefore this initialization path is not used. 400 // Therefore this initialization path is not used.
407 enumerator->OnComplete(true); 401 enumerator->OnComplete(true);
408 } 402 }
409 403
410 } // namespace android_webview 404 } // namespace android_webview
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698