| OLD | NEW |
| 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 Loading... |
| 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()); | 36 return new MinidumpUploaderImpl(new AwMinidumpUploaderDelegate(this)); |
| 37 } | 37 } |
| 38 } | 38 } |
| OLD | NEW |