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

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

Issue 2884353003: [WebView] Remove more redundant classes (Closed)
Patch Set: 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 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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698