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

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

Issue 1297193002: Move VariationsRegistrySyncerWin to ChromeVariationsServiceClient (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix build harder Created 5 years, 4 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/metrics/variations/chrome_variations_service_client.h » ('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 1636 matching lines...) Expand 10 before | Expand all | Expand 10 after
1647 base::TimeDelta delay = base::TimeTicks::Now() - browser_open_start; 1647 base::TimeDelta delay = base::TimeTicks::Now() - browser_open_start;
1648 UMA_HISTOGRAM_LONG_TIMES_100("Startup.BrowserOpenTabs", delay); 1648 UMA_HISTOGRAM_LONG_TIMES_100("Startup.BrowserOpenTabs", delay);
1649 1649
1650 // If we're running tests (ui_task is non-null), then we don't want to 1650 // If we're running tests (ui_task is non-null), then we don't want to
1651 // call RequestLanguageList or StartRepeatedVariationsSeedFetch or 1651 // call RequestLanguageList or StartRepeatedVariationsSeedFetch or
1652 // RequestLanguageList 1652 // RequestLanguageList
1653 if (parameters().ui_task == NULL) { 1653 if (parameters().ui_task == NULL) {
1654 // Request new variations seed information from server. 1654 // Request new variations seed information from server.
1655 chrome_variations::VariationsService* variations_service = 1655 chrome_variations::VariationsService* variations_service =
1656 browser_process_->variations_service(); 1656 browser_process_->variations_service();
1657 if (variations_service) { 1657 if (variations_service) {
Alexei Svitkine (slow) 2015/08/24 16:36:31 Nit: No {}s
blundell 2015/08/24 18:32:08 Done.
1658 variations_service->StartRepeatedVariationsSeedFetch(); 1658 variations_service->PerformInitialStartup();
Alexei Svitkine (slow) 2015/08/24 16:36:31 Hmm, this name isn't super accurate. In fact, this
blundell 2015/08/24 18:32:08 Done.
1659
1660 #if defined(OS_WIN)
1661 variations_service->StartGoogleUpdateRegistrySync();
1662 #endif // defined(OS_WIN)
1663 } 1659 }
1664 1660
1665 translate::TranslateDownloadManager::RequestLanguageList( 1661 translate::TranslateDownloadManager::RequestLanguageList(
1666 profile_->GetPrefs()); 1662 profile_->GetPrefs());
1667 } 1663 }
1668 1664
1669 run_message_loop_ = true; 1665 run_message_loop_ = true;
1670 } else { 1666 } else {
1671 run_message_loop_ = false; 1667 run_message_loop_ = false;
1672 } 1668 }
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
1805 chromeos::CrosSettings::Shutdown(); 1801 chromeos::CrosSettings::Shutdown();
1806 #endif // defined(OS_CHROMEOS) 1802 #endif // defined(OS_CHROMEOS)
1807 #endif // defined(OS_ANDROID) 1803 #endif // defined(OS_ANDROID)
1808 } 1804 }
1809 1805
1810 // Public members: 1806 // Public members:
1811 1807
1812 void ChromeBrowserMainParts::AddParts(ChromeBrowserMainExtraParts* parts) { 1808 void ChromeBrowserMainParts::AddParts(ChromeBrowserMainExtraParts* parts) {
1813 chrome_extra_parts_.push_back(parts); 1809 chrome_extra_parts_.push_back(parts);
1814 } 1810 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/metrics/variations/chrome_variations_service_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698