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/glue/java/src/com/android/webview/chromium/WebViewChromiumFactoryProvider.java

Issue 1378653002: [Android] Enable ApplicationStatus for WebView. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add intial sCachedApplicationState Created 5 years, 1 month 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
« no previous file with comments | « no previous file | android_webview/java/src/org/chromium/android_webview/AwBrowserProcess.java » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 package com.android.webview.chromium; 5 package com.android.webview.chromium;
6 6
7 import android.app.ActivityManager; 7 import android.app.ActivityManager;
8 import android.content.ComponentCallbacks2; 8 import android.content.ComponentCallbacks2;
9 import android.content.Context; 9 import android.content.Context;
10 import android.content.Intent; 10 import android.content.Intent;
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 throw new RuntimeException("Error initializing WebView library", e); 240 throw new RuntimeException("Error initializing WebView library", e);
241 } 241 }
242 242
243 PathService.override(PathService.DIR_MODULE, "/system/lib/"); 243 PathService.override(PathService.DIR_MODULE, "/system/lib/");
244 PathService.override(DIR_RESOURCE_PAKS_ANDROID, "/system/framework/webvi ew/paks"); 244 PathService.override(DIR_RESOURCE_PAKS_ANDROID, "/system/framework/webvi ew/paks");
245 245
246 // Make sure that ResourceProvider is initialized before starting the br owser process. 246 // Make sure that ResourceProvider is initialized before starting the br owser process.
247 setUpResources(context); 247 setUpResources(context);
248 ResourceBundle.initializeLocalePaks(context, R.array.locale_paks); 248 ResourceBundle.initializeLocalePaks(context, R.array.locale_paks);
249 initPlatSupportLibrary(); 249 initPlatSupportLibrary();
250 AwBrowserProcess.start(context); 250 AwBrowserProcess.start(context, mWebViewDelegate.getApplication());
251 251
252 if (isBuildDebuggable()) { 252 if (isBuildDebuggable()) {
253 setWebContentsDebuggingEnabled(true); 253 setWebContentsDebuggingEnabled(true);
254 } 254 }
255 255
256 TraceEvent.setATraceEnabled(mWebViewDelegate.isTraceTagEnabled()); 256 TraceEvent.setATraceEnabled(mWebViewDelegate.isTraceTagEnabled());
257 mWebViewDelegate.setOnTraceEnabledChangeListener( 257 mWebViewDelegate.setOnTraceEnabledChangeListener(
258 new WebViewDelegate.OnTraceEnabledChangeListener() { 258 new WebViewDelegate.OnTraceEnabledChangeListener() {
259 @Override 259 @Override
260 public void onTraceEnabledChange(boolean enabled) { 260 public void onTraceEnabledChange(boolean enabled) {
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
463 browserContext.getHttpAuthDatabase(context)); 463 browserContext.getHttpAuthDatabase(context));
464 } 464 }
465 } 465 }
466 return mWebViewDatabase; 466 return mWebViewDatabase;
467 } 467 }
468 468
469 WebViewDelegate getWebViewDelegate() { 469 WebViewDelegate getWebViewDelegate() {
470 return mWebViewDelegate; 470 return mWebViewDelegate;
471 } 471 }
472 } 472 }
OLDNEW
« no previous file with comments | « no previous file | android_webview/java/src/org/chromium/android_webview/AwBrowserProcess.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698