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

Side by Side Diff: android_webview/java/src/org/chromium/android_webview/crash/AwMinidumpUploadJobService.java

Issue 2784353002: Android: Remove GetApplicationContext part 2 (Closed)
Patch Set: Fix tests Created 3 years, 8 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 package org.chromium.android_webview.crash; 4 package org.chromium.android_webview.crash;
5 5
6 import android.annotation.TargetApi; 6 import android.annotation.TargetApi;
7 import android.os.Build; 7 import android.os.Build;
8 import android.os.PersistableBundle; 8 import android.os.PersistableBundle;
9 9
10 import org.chromium.android_webview.command_line.CommandLineUtil; 10 import org.chromium.android_webview.command_line.CommandLineUtil;
(...skipping 15 matching lines...) Expand all
26 // WebView-specific command line file. This is okay since this Service i s not running in the 26 // WebView-specific command line file. This is okay since this Service i s not running in the
27 // same process as the main Chrome process. 27 // same process as the main Chrome process.
28 CommandLineUtil.initCommandLine(); 28 CommandLineUtil.initCommandLine();
29 } 29 }
30 30
31 @Override 31 @Override
32 protected MinidumpUploader createMinidumpUploader(PersistableBundle unusedEx tras) { 32 protected MinidumpUploader createMinidumpUploader(PersistableBundle unusedEx tras) {
33 // Ensure we can use ContextUtils later on (from the minidump_uploader c omponent). 33 // Ensure we can use ContextUtils later on (from the minidump_uploader c omponent).
34 ContextUtils.initApplicationContext(this.getApplicationContext()); 34 ContextUtils.initApplicationContext(this.getApplicationContext());
35 35
36 return new MinidumpUploaderImpl(new AwMinidumpUploaderDelegate(this)); 36 return new MinidumpUploaderImpl(new AwMinidumpUploaderDelegate());
37 } 37 }
38 } 38 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698