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

Unified Diff: chrome/browser/sync/profile_sync_service.cc

Issue 3436017: Remove unnecessary log spew from ProfileSyncService. (Closed)
Patch Set: const& Created 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/sync/profile_sync_service.h ('k') | chrome/browser/sync/resources/about_sync.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/profile_sync_service.cc
diff --git a/chrome/browser/sync/profile_sync_service.cc b/chrome/browser/sync/profile_sync_service.cc
index 11966473d74b17535191bc612a32d936736039cd..dc412e3e5462958f3a3c799b9a8f8b08f2cb66de 100644
--- a/chrome/browser/sync/profile_sync_service.cc
+++ b/chrome/browser/sync/profile_sync_service.cc
@@ -101,13 +101,8 @@ ProfileSyncService::ProfileSyncService(ProfileSyncFactory* factory,
// If this is an official build, it will always be one of the above.
std::string channel = platform_util::GetVersionStringModifier();
if (channel.empty() || channel == "beta") {
- LOG(INFO) << "Detected official build, using official sync server.";
sync_service_url_ = GURL(kSyncServerUrl);
- } else {
- LOG(INFO) << "Detected official build, but using dev channel sync server.";
}
-#else
- LOG(INFO) << "Unofficial build, using dev channel sync server.";
#endif
}
@@ -160,7 +155,6 @@ void ProfileSyncService::LoadMigratedCredentials(const std::string& username,
}
void ProfileSyncService::Initialize() {
- LOG(INFO) << "Starting ProfileSyncService.";
InitSettings();
RegisterPreferences();
@@ -267,8 +261,6 @@ void ProfileSyncService::InitSettings() {
}
}
- LOG(INFO) << "Using " << sync_service_url_ << " for sync server URL.";
-
// Override the notification server host from the command-line, if provided.
if (command_line.HasSwitch(switches::kSyncNotificationHost)) {
std::string value(command_line.GetSwitchValueASCII(
@@ -395,8 +387,6 @@ void ProfileSyncService::StartUp() {
DCHECK(AreCredentialsAvailable());
- LOG(INFO) << "ProfileSyncService bringing up backend host.";
-
last_synced_time_ = base::Time::FromInternalValue(
profile_->GetPrefs()->GetInt64(prefs::kSyncLastSyncedTime));
@@ -437,8 +427,6 @@ void ProfileSyncService::ClearServerData() {
}
void ProfileSyncService::DisableForUser() {
- LOG(INFO) << "Disabling sync for user.";
-
// Clear prefs (including SyncSetupHasCompleted) before shutting down so
// PSS clients don't think we're set up while we're shutting down.
ClearPreferences();
« no previous file with comments | « chrome/browser/sync/profile_sync_service.h ('k') | chrome/browser/sync/resources/about_sync.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698