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