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