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

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

Issue 2108983002: Use ContextUtils in PhysicalWeb (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update tests to use new methods Created 4 years, 5 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
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/physicalweb/ClearNotificationAlarmReceiver.java » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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; 5 package org.chromium.chrome.browser;
6 6
7 import android.content.Context; 7 import android.content.Context;
8 import android.content.Intent; 8 import android.content.Intent;
9 import android.content.SharedPreferences; 9 import android.content.SharedPreferences;
10 import android.content.pm.ResolveInfo; 10 import android.content.pm.ResolveInfo;
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 171
172 recordKeyboardLocaleUma(); 172 recordKeyboardLocaleUma();
173 173
174 ChromeApplication application = (ChromeApplication) mAppContext; 174 ChromeApplication application = (ChromeApplication) mAppContext;
175 // Starts syncing with GSA. 175 // Starts syncing with GSA.
176 application.createGsaHelper().startSync(); 176 application.createGsaHelper().startSync();
177 177
178 application.initializeSharedClasses(); 178 application.initializeSharedClasses();
179 179
180 // Start or stop Physical Web 180 // Start or stop Physical Web
181 PhysicalWeb.onChromeStart(application); 181 PhysicalWeb.onChromeStart();
182 182
183 mDeferredStartupComplete = true; 183 mDeferredStartupComplete = true;
184 184
185 RecordHistogram.recordLongTimesHistogram( 185 RecordHistogram.recordLongTimesHistogram(
186 "UMA.Debug.EnableCrashUpload.DeferredStartUpDuration", 186 "UMA.Debug.EnableCrashUpload.DeferredStartUpDuration",
187 SystemClock.uptimeMillis() - startDeferredStartupTime, 187 SystemClock.uptimeMillis() - startDeferredStartupTime,
188 TimeUnit.MILLISECONDS); 188 TimeUnit.MILLISECONDS);
189 } 189 }
190 190
191 private void startModerateBindingManagementIfNeeded() { 191 private void startModerateBindingManagementIfNeeded() {
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 } 258 }
259 259
260 /** 260 /**
261 * @return Whether deferred startup has been completed. 261 * @return Whether deferred startup has been completed.
262 */ 262 */
263 @VisibleForTesting 263 @VisibleForTesting
264 public boolean isDeferredStartupComplete() { 264 public boolean isDeferredStartupComplete() {
265 return mDeferredStartupComplete; 265 return mDeferredStartupComplete;
266 } 266 }
267 } 267 }
OLDNEW
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/physicalweb/ClearNotificationAlarmReceiver.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698