OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |