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

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

Issue 13145003: Rewrite std::string("") to std::string(), Linux edition. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Ugh Created 7 years, 8 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
Index: chrome/browser/sync/profile_sync_service_harness.cc
diff --git a/chrome/browser/sync/profile_sync_service_harness.cc b/chrome/browser/sync/profile_sync_service_harness.cc
index c290374fbeaba4f9169f393b7d1d554cefbb53af..eb0b074d9cdf8b373bbd3b1bc90c56a7717765b7 100644
--- a/chrome/browser/sync/profile_sync_service_harness.cc
+++ b/chrome/browser/sync/profile_sync_service_harness.cc
@@ -134,7 +134,7 @@ ProfileSyncServiceHarness* ProfileSyncServiceHarness::CreateAndAttach(
NOTREACHED() << "Profile has never signed into sync.";
return NULL;
}
- return new ProfileSyncServiceHarness(profile, "", "");
+ return new ProfileSyncServiceHarness(profile, std::string(), std::string());
}
void ProfileSyncServiceHarness::SetCredentials(const std::string& username,
@@ -179,7 +179,8 @@ bool ProfileSyncServiceHarness::SetupSync(
service_->SetSetupInProgress(true);
// Authenticate sync client using GAIA credentials.
- service_->signin()->StartSignIn(username_, password_, "", "");
+ service_->signin()
+ ->StartSignIn(username_, password_, std::string(), std::string());
// Wait for the OnBackendInitialized() callback.
if (!AwaitBackendInitialized()) {
@@ -1014,7 +1015,7 @@ std::string ProfileSyncServiceHarness::GetSerializedProgressMarker(
syncer::ProgressMarkerMap::const_iterator it =
markers_map.find(model_type);
- return (it != markers_map.end()) ? it->second : "";
+ return (it != markers_map.end()) ? it->second : std::string();
}
std::string ProfileSyncServiceHarness::GetClientInfoString(

Powered by Google App Engine
This is Rietveld 408576698