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

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/crash/MinidumpUploadRetry.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 org.chromium.chrome.browser.crash; 5 package org.chromium.chrome.browser.crash;
6 6
7 import android.content.Context; 7 import android.content.Context;
8 import android.os.Handler; 8 import android.os.Handler;
9 9
10 import org.chromium.base.NonThreadSafe; 10 import org.chromium.base.NonThreadSafe;
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 @SuppressFBWarnings("ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD") 67 @SuppressFBWarnings("ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD")
68 @Override 68 @Override
69 public void onConnectionTypeChanged(int connectionType) { 69 public void onConnectionTypeChanged(int connectionType) {
70 // Early-out if not connected at all - to avoid checking the current net work state. 70 // Early-out if not connected at all - to avoid checking the current net work state.
71 if (connectionType == ConnectionType.CONNECTION_NONE) { 71 if (connectionType == ConnectionType.CONNECTION_NONE) {
72 return; 72 return;
73 } 73 }
74 if (!mPermissionManager.isNetworkAvailableForCrashUploads()) { 74 if (!mPermissionManager.isNetworkAvailableForCrashUploads()) {
75 return; 75 return;
76 } 76 }
77 MinidumpUploadService.tryUploadAllCrashDumps(mContext); 77 MinidumpUploadService.tryUploadAllCrashDumps();
78 NetworkChangeNotifier.removeConnectionTypeObserver(this); 78 NetworkChangeNotifier.removeConnectionTypeObserver(this);
79 sSingleton = null; 79 sSingleton = null;
80 } 80 }
81 } 81 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698