Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 "android_webview/browser/aw_web_preferences_populater.h" | 5 #include "android_webview/browser/aw_web_preferences_populater.h" |
| 6 #include "android_webview/browser/aw_settings.h" | |
| 6 | 7 |
| 7 namespace android_webview { | 8 namespace android_webview { |
| 8 | 9 |
| 9 AwWebPreferencesPopulater::~AwWebPreferencesPopulater() {} | 10 void AwWebPreferencesPopulater::PopulateFor( |
|
boliu
2017/05/17 16:18:11
you can remove this class entirely and just inline
| |
| 11 content::WebContents* web_contents, | |
| 12 content::WebPreferences* web_prefs) { | |
| 13 AwSettings* aw_settings = AwSettings::FromWebContents(web_contents); | |
| 14 if (aw_settings) { | |
| 15 aw_settings->PopulateWebPreferences(web_prefs); | |
| 16 } | |
| 17 } | |
| 10 | 18 |
| 11 } // namespace android_webview | 19 } // namespace android_webview |
| OLD | NEW |