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

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

Issue 511623002: Add a mechanism for collecting Rappor samples on a daily interval. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
« no previous file with comments | « no previous file | chrome/browser/extensions/activity_log/ad_injection_unittest.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 629 matching lines...) Expand 10 before | Expand all | Expand 10 after
640 metrics->StartRecordingForTests(); 640 metrics->StartRecordingForTests();
641 return; 641 return;
642 } 642 }
643 643
644 metrics->CheckForClonedInstall( 644 metrics->CheckForClonedInstall(
645 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE)); 645 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE));
646 const bool metrics_enabled = metrics->StartIfMetricsReportingEnabled(); 646 const bool metrics_enabled = metrics->StartIfMetricsReportingEnabled();
647 // TODO(asvitkine): Since this function is not run on Android, RAPPOR is 647 // TODO(asvitkine): Since this function is not run on Android, RAPPOR is
648 // currently disabled there. http://crbug.com/370041 648 // currently disabled there. http://crbug.com/370041
649 browser_process_->rappor_service()->Start( 649 browser_process_->rappor_service()->Start(
650 browser_process_->local_state(),
651 browser_process_->system_request_context(), 650 browser_process_->system_request_context(),
652 metrics_enabled); 651 metrics_enabled);
653 } 652 }
654 653
655 void ChromeBrowserMainParts::RecordBrowserStartupTime() { 654 void ChromeBrowserMainParts::RecordBrowserStartupTime() {
656 // Don't record any metrics if UI was displayed before this point e.g. 655 // Don't record any metrics if UI was displayed before this point e.g.
657 // warning dialogs. 656 // warning dialogs.
658 if (startup_metric_utils::WasNonBrowserUIDisplayed()) 657 if (startup_metric_utils::WasNonBrowserUIDisplayed())
659 return; 658 return;
660 659
(...skipping 1002 matching lines...) Expand 10 before | Expand all | Expand 10 after
1663 chromeos::CrosSettings::Shutdown(); 1662 chromeos::CrosSettings::Shutdown();
1664 #endif 1663 #endif
1665 #endif 1664 #endif
1666 } 1665 }
1667 1666
1668 // Public members: 1667 // Public members:
1669 1668
1670 void ChromeBrowserMainParts::AddParts(ChromeBrowserMainExtraParts* parts) { 1669 void ChromeBrowserMainParts::AddParts(ChromeBrowserMainExtraParts* parts) {
1671 chrome_extra_parts_.push_back(parts); 1670 chrome_extra_parts_.push_back(parts);
1672 } 1671 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/activity_log/ad_injection_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698