Fix for Hyperlinks do not open in new tab by Print preview window.
[chromium-blink-merge.git] / android_webview / native / aw_web_preferences_populater_impl.cc
blob5228267e4c6a6bc21611725551bb7a265c369f75
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
3 // found in the LICENSE file.
5 #include "android_webview/native/aw_web_preferences_populater_impl.h"
7 #include "android_webview/native/aw_settings.h"
9 namespace android_webview {
11 AwWebPreferencesPopulaterImpl::AwWebPreferencesPopulaterImpl() {
14 AwWebPreferencesPopulaterImpl::~AwWebPreferencesPopulaterImpl() {
17 void AwWebPreferencesPopulaterImpl::PopulateFor(
18 content::WebContents* web_contents,
19 content::WebPreferences* web_prefs) {
20 AwSettings* aw_settings = AwSettings::FromWebContents(web_contents);
21 if (aw_settings) {
22 aw_settings->PopulateWebPreferences(web_prefs);
26 } // namespace android_webview