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

Side by Side Diff: android_webview/lib/main/aw_main_delegate.cc

Issue 2650753002: Implement renderer importance API for WebView (Closed)
Patch Set: clean up unused local Created 3 years, 10 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/lib/main/aw_main_delegate.h" 5 #include "android_webview/lib/main/aw_main_delegate.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "android_webview/browser/aw_content_browser_client.h" 9 #include "android_webview/browser/aw_content_browser_client.h"
10 #include "android_webview/browser/aw_safe_browsing_config_helper.h" 10 #include "android_webview/browser/aw_safe_browsing_config_helper.h"
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 gin::V8Initializer::GetSnapshotFilePath(true).AsUTF8Unsafe()); 140 gin::V8Initializer::GetSnapshotFilePath(true).AsUTF8Unsafe());
141 base::android::RegisterApkAssetWithGlobalDescriptors( 141 base::android::RegisterApkAssetWithGlobalDescriptors(
142 kV8SnapshotDataDescriptor64, 142 kV8SnapshotDataDescriptor64,
143 gin::V8Initializer::GetSnapshotFilePath(false).AsUTF8Unsafe()); 143 gin::V8Initializer::GetSnapshotFilePath(false).AsUTF8Unsafe());
144 } 144 }
145 #endif // V8_USE_EXTERNAL_STARTUP_DATA 145 #endif // V8_USE_EXTERNAL_STARTUP_DATA
146 146
147 if (cl->HasSwitch(switches::kWebViewSandboxedRenderer)) { 147 if (cl->HasSwitch(switches::kWebViewSandboxedRenderer)) {
148 cl->AppendSwitch(switches::kInProcessGPU); 148 cl->AppendSwitch(switches::kInProcessGPU);
149 cl->AppendSwitchASCII(switches::kRendererProcessLimit, "1"); 149 cl->AppendSwitchASCII(switches::kRendererProcessLimit, "1");
150 cl->AppendSwitch(switches::kDisableRendererBackgrounding); 150 cl->AppendSwitch(switches::kDisableRendererPriorityManagement);
151 } 151 }
152 152
153 CommandLineHelper::AddEnabledFeature( 153 CommandLineHelper::AddEnabledFeature(
154 *cl, spellcheck::kAndroidSpellCheckerNonLowEnd.name); 154 *cl, spellcheck::kAndroidSpellCheckerNonLowEnd.name);
155 155
156 CommandLineHelper::AddDisabledFeature(*cl, features::kWebPayments.name); 156 CommandLineHelper::AddDisabledFeature(*cl, features::kWebPayments.name);
157 157
158 android_webview::RegisterPathProvider(); 158 android_webview::RegisterPathProvider();
159 159
160 if (AwSafeBrowsingConfigHelper::GetSafeBrowsingEnabled()) { 160 if (AwSafeBrowsingConfigHelper::GetSafeBrowsingEnabled()) {
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 280
281 AwWebPreferencesPopulater* AwMainDelegate::CreateWebPreferencesPopulater() { 281 AwWebPreferencesPopulater* AwMainDelegate::CreateWebPreferencesPopulater() {
282 return new AwWebPreferencesPopulaterImpl(); 282 return new AwWebPreferencesPopulaterImpl();
283 } 283 }
284 284
285 AwLocaleManager* AwMainDelegate::CreateAwLocaleManager() { 285 AwLocaleManager* AwMainDelegate::CreateAwLocaleManager() {
286 return new AwLocaleManagerImpl(); 286 return new AwLocaleManagerImpl();
287 } 287 }
288 288
289 } // namespace android_webview 289 } // namespace android_webview
OLDNEW
« no previous file with comments | « android_webview/javatests/src/org/chromium/android_webview/test/AwContentsTest.java ('k') | android_webview/native/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698