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

Side by Side Diff: chrome/app/chrome_main_delegate.cc

Issue 23443009: [Android] Support startup histogram. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: [Android] Support startup histogram; remove unnecessary change to AwShellApplication.java Created 7 years, 3 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "chrome/app/chrome_main_delegate.h" 5 #include "chrome/app/chrome_main_delegate.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/lazy_instance.h" 9 #include "base/lazy_instance.h"
10 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 #endif // OS_POSIX 333 #endif // OS_POSIX
334 334
335 struct MainFunction { 335 struct MainFunction {
336 const char* name; 336 const char* name;
337 int (*function)(const content::MainFunctionParams&); 337 int (*function)(const content::MainFunctionParams&);
338 }; 338 };
339 339
340 } // namespace 340 } // namespace
341 341
342 ChromeMainDelegate::ChromeMainDelegate() { 342 ChromeMainDelegate::ChromeMainDelegate() {
343 // On Android the main entry point time is when the Java code starts, not here.
344 // We have recorded that, but can't fetch it from the Java side until we have
345 // initialized the JNI. See ChromeMainDelegateAndroid.
346 #if !defined(OS_ANDROID)
343 startup_metric_utils::RecordMainEntryPointTime(); 347 startup_metric_utils::RecordMainEntryPointTime();
348 #endif
jeremy 2013/08/27 19:18:51 I think this would be a bit clearer as: #if !defi
aberent 2013/08/28 15:53:05 Done.
344 } 349 }
345 350
346 ChromeMainDelegate::~ChromeMainDelegate() { 351 ChromeMainDelegate::~ChromeMainDelegate() {
347 } 352 }
348 353
349 bool ChromeMainDelegate::BasicStartupComplete(int* exit_code) { 354 bool ChromeMainDelegate::BasicStartupComplete(int* exit_code) {
350 #if defined(OS_CHROMEOS) 355 #if defined(OS_CHROMEOS)
351 chromeos::BootTimesLoader::Get()->SaveChromeMainStats(); 356 chromeos::BootTimesLoader::Get()->SaveChromeMainStats();
352 #endif 357 #endif
353 358
(...skipping 503 matching lines...) Expand 10 before | Expand all | Expand 10 after
857 } 862 }
858 863
859 content::ContentUtilityClient* 864 content::ContentUtilityClient*
860 ChromeMainDelegate::CreateContentUtilityClient() { 865 ChromeMainDelegate::CreateContentUtilityClient() {
861 #if defined(CHROME_MULTIPLE_DLL_BROWSER) 866 #if defined(CHROME_MULTIPLE_DLL_BROWSER)
862 return NULL; 867 return NULL;
863 #else 868 #else
864 return &g_chrome_content_utility_client.Get(); 869 return &g_chrome_content_utility_client.Get();
865 #endif 870 #endif
866 } 871 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698