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

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/omaha/ExponentialBackoffScheduler.java

Issue 1206673003: Merge java_staging/src into java/src. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 6 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.omaha; 5 package org.chromium.chrome.browser.omaha;
6 6
7 import android.app.AlarmManager; 7 import android.app.AlarmManager;
8 import android.app.PendingIntent; 8 import android.app.PendingIntent;
9 import android.content.Context; 9 import android.content.Context;
10 import android.content.Intent; 10 import android.content.Intent;
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 int twoToThePowerOfN = 1 << n; 188 int twoToThePowerOfN = 1 << n;
189 return sRandom.nextInt(twoToThePowerOfN) + 1; 189 return sRandom.nextInt(twoToThePowerOfN) + 1;
190 } 190 }
191 191
192 private SharedPreferences getSharedPreferences() { 192 private SharedPreferences getSharedPreferences() {
193 SharedPreferences preferences = 193 SharedPreferences preferences =
194 mContext.getSharedPreferences(mPreferencePackage, Context.MODE_P RIVATE); 194 mContext.getSharedPreferences(mPreferencePackage, Context.MODE_P RIVATE);
195 return preferences; 195 return preferences;
196 } 196 }
197 } 197 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698