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

Unified Diff: android_webview/native/aw_web_preferences_populater_impl.cc

Issue 23619089: [Android WebView] Populate WebKit WebPreferences correctly in browser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: android_webview/native/aw_web_preferences_populater_impl.cc
diff --git a/android_webview/native/aw_web_preferences_populater_impl.cc b/android_webview/native/aw_web_preferences_populater_impl.cc
new file mode 100644
index 0000000000000000000000000000000000000000..12b95f155cc7b9a8026a963bf07095418249f692
--- /dev/null
+++ b/android_webview/native/aw_web_preferences_populater_impl.cc
@@ -0,0 +1,26 @@
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "android_webview/native/aw_web_preferences_populater_impl.h"
+
+#include "android_webview/native/aw_settings.h"
+
+namespace android_webview {
+
+AwWebPreferencesPopulaterImpl::AwWebPreferencesPopulaterImpl() {
+}
+
+AwWebPreferencesPopulaterImpl::~AwWebPreferencesPopulaterImpl() {
+}
+
+void AwWebPreferencesPopulaterImpl::PopulateFor(
+ content::WebContents* web_contents,
+ WebPreferences* web_prefs) {
+ AwSettings* aw_settings = AwSettings::FromWebContents(web_contents);
+ if (aw_settings) {
+ aw_settings->PopulateWebPreferences(web_prefs);
+ }
+}
+
+}
« no previous file with comments | « android_webview/native/aw_web_preferences_populater_impl.h ('k') | android_webview/native/webview_native.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698