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

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

Issue 2714853002: Remove kDistroDict from Preferences. (Closed)
Patch Set: kRlzPingDelay -> kRlzPingDelaySeconds Created 3 years, 9 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/chromeos/login/session/user_session_manager.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 <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <set> 10 #include <set>
(...skipping 1723 matching lines...) Expand 10 before | Expand all | Expand 10 after
1734 BrowserThread::PostTask(BrowserThread::FILE, FROM_HERE, 1734 BrowserThread::PostTask(BrowserThread::FILE, FROM_HERE,
1735 base::Bind(&NetworkProfileBubble::CheckNetworkProfile, 1735 base::Bind(&NetworkProfileBubble::CheckNetworkProfile,
1736 profile_->GetPath())); 1736 profile_->GetPath()));
1737 } 1737 }
1738 #endif // defined(OS_WIN) 1738 #endif // defined(OS_WIN)
1739 1739
1740 #if BUILDFLAG(ENABLE_RLZ) && !defined(OS_CHROMEOS) 1740 #if BUILDFLAG(ENABLE_RLZ) && !defined(OS_CHROMEOS)
1741 // Init the RLZ library. This just binds the dll and schedules a task on the 1741 // Init the RLZ library. This just binds the dll and schedules a task on the
1742 // file thread to be run sometime later. If this is the first run we record 1742 // file thread to be run sometime later. If this is the first run we record
1743 // the installation event. 1743 // the installation event.
1744 PrefService* pref_service = profile_->GetPrefs(); 1744 int ping_delay =
1745 int ping_delay = first_run::IsChromeFirstRun() ? master_prefs_->ping_delay : 1745 profile_->GetPrefs()->GetInteger(prefs::kRlzPingDelaySeconds);
1746 pref_service->GetInteger(first_run::GetPingDelayPrefName().c_str());
1747 // Negative ping delay means to send ping immediately after a first search is 1746 // Negative ping delay means to send ping immediately after a first search is
1748 // recorded. 1747 // recorded.
1749 rlz::RLZTracker::SetRlzDelegate( 1748 rlz::RLZTracker::SetRlzDelegate(
1750 base::WrapUnique(new ChromeRLZTrackerDelegate)); 1749 base::WrapUnique(new ChromeRLZTrackerDelegate));
1751 rlz::RLZTracker::InitRlzDelayed( 1750 rlz::RLZTracker::InitRlzDelayed(
1752 first_run::IsChromeFirstRun(), ping_delay < 0, 1751 first_run::IsChromeFirstRun(), ping_delay < 0,
1753 base::TimeDelta::FromMilliseconds(abs(ping_delay)), 1752 base::TimeDelta::FromSeconds(abs(ping_delay)),
1754 ChromeRLZTrackerDelegate::IsGoogleDefaultSearch(profile_), 1753 ChromeRLZTrackerDelegate::IsGoogleDefaultSearch(profile_),
1755 ChromeRLZTrackerDelegate::IsGoogleHomepage(profile_), 1754 ChromeRLZTrackerDelegate::IsGoogleHomepage(profile_),
1756 ChromeRLZTrackerDelegate::IsGoogleInStartpages(profile_)); 1755 ChromeRLZTrackerDelegate::IsGoogleInStartpages(profile_));
1757 #endif // BUILDFLAG(ENABLE_RLZ) && !defined(OS_CHROMEOS) 1756 #endif // BUILDFLAG(ENABLE_RLZ) && !defined(OS_CHROMEOS)
1758 1757
1759 // Configure modules that need access to resources. 1758 // Configure modules that need access to resources.
1760 net::NetModule::SetResourceProvider(chrome_common_net::NetResourceProvider); 1759 net::NetModule::SetResourceProvider(chrome_common_net::NetResourceProvider);
1761 media::SetLocalizedStringProvider( 1760 media::SetLocalizedStringProvider(
1762 chrome_common_media::LocalizedStringProvider); 1761 chrome_common_media::LocalizedStringProvider);
1763 1762
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after
2112 chromeos::CrosSettings::Shutdown(); 2111 chromeos::CrosSettings::Shutdown();
2113 #endif // defined(OS_CHROMEOS) 2112 #endif // defined(OS_CHROMEOS)
2114 #endif // defined(OS_ANDROID) 2113 #endif // defined(OS_ANDROID)
2115 } 2114 }
2116 2115
2117 // Public members: 2116 // Public members:
2118 2117
2119 void ChromeBrowserMainParts::AddParts(ChromeBrowserMainExtraParts* parts) { 2118 void ChromeBrowserMainParts::AddParts(ChromeBrowserMainExtraParts* parts) {
2120 chrome_extra_parts_.push_back(parts); 2119 chrome_extra_parts_.push_back(parts);
2121 } 2120 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/session/user_session_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698