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

Side by Side Diff: chrome/browser/chrome_browser_main.cc

Issue 1663853003: [Merge M48] "[Merge M49] Add SameVersionStartupCounts suffix to startup HardFault and Temperature h… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@merge_m48_b2_startupVcount
Patch Set: Created 4 years, 10 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 | components/html_viewer/stats_collection_controller.cc » ('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 (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/browser/chrome_browser_main.h" 5 #include "chrome/browser/chrome_browser_main.h"
6 6
7 #include <set> 7 #include <set>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 750 matching lines...) Expand 10 before | Expand all | Expand 10 after
761 bool is_first_run = false; 761 bool is_first_run = false;
762 #if !defined(OS_ANDROID) 762 #if !defined(OS_ANDROID)
763 // On Android, first run is handled in Java code, and the C++ side of Chrome 763 // On Android, first run is handled in Java code, and the C++ side of Chrome
764 // doesn't know if this is the first run. This will cause some inaccuracy in 764 // doesn't know if this is the first run. This will cause some inaccuracy in
765 // the UMA statistics, but this should be minor (first runs are rare). 765 // the UMA statistics, but this should be minor (first runs are rare).
766 is_first_run = first_run::IsChromeFirstRun(); 766 is_first_run = first_run::IsChromeFirstRun();
767 #endif // defined(OS_ANDROID) 767 #endif // defined(OS_ANDROID)
768 768
769 // Record collected startup metrics. 769 // Record collected startup metrics.
770 startup_metric_utils::RecordBrowserMainMessageLoopStart( 770 startup_metric_utils::RecordBrowserMainMessageLoopStart(
771 base::TimeTicks::Now(), is_first_run); 771 base::TimeTicks::Now(), is_first_run, g_browser_process->local_state());
772 startup_metric_utils::RecordTimeSinceLastStartup(
773 g_browser_process->local_state());
774 startup_metric_utils::RecordStartupCount(g_browser_process->local_state());
775 } 772 }
776 773
777 // ----------------------------------------------------------------------------- 774 // -----------------------------------------------------------------------------
778 // TODO(viettrungluu): move more/rest of BrowserMain() into BrowserMainParts. 775 // TODO(viettrungluu): move more/rest of BrowserMain() into BrowserMainParts.
779 776
780 #if defined(OS_WIN) 777 #if defined(OS_WIN)
781 #define DLLEXPORT __declspec(dllexport) 778 #define DLLEXPORT __declspec(dllexport)
782 779
783 // We use extern C for the prototype DLLEXPORT to avoid C++ name mangling. 780 // We use extern C for the prototype DLLEXPORT to avoid C++ name mangling.
784 extern "C" { 781 extern "C" {
(...skipping 1078 matching lines...) Expand 10 before | Expand all | Expand 10 after
1863 chromeos::CrosSettings::Shutdown(); 1860 chromeos::CrosSettings::Shutdown();
1864 #endif // defined(OS_CHROMEOS) 1861 #endif // defined(OS_CHROMEOS)
1865 #endif // defined(OS_ANDROID) 1862 #endif // defined(OS_ANDROID)
1866 } 1863 }
1867 1864
1868 // Public members: 1865 // Public members:
1869 1866
1870 void ChromeBrowserMainParts::AddParts(ChromeBrowserMainExtraParts* parts) { 1867 void ChromeBrowserMainParts::AddParts(ChromeBrowserMainExtraParts* parts) {
1871 chrome_extra_parts_.push_back(parts); 1868 chrome_extra_parts_.push_back(parts);
1872 } 1869 }
OLDNEW
« no previous file with comments | « no previous file | components/html_viewer/stats_collection_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698