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