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

Unified Diff: chrome/browser/sync/test/integration/sync_test.cc

Issue 2127373006: Use base::StartWith() in more places when appropriate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase, resolve conflict Created 4 years, 5 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/shell_integration_linux.cc ('k') | chrome/browser/ui/startup/startup_browser_creator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/test/integration/sync_test.cc
diff --git a/chrome/browser/sync/test/integration/sync_test.cc b/chrome/browser/sync/test/integration/sync_test.cc
index 047674ab9bdd75d5bbd8023841616a56151a0977..62685f0d19c713f771ecbb06a31e57bb211675c9 100644
--- a/chrome/browser/sync/test/integration/sync_test.cc
+++ b/chrome/browser/sync/test/integration/sync_test.cc
@@ -145,7 +145,8 @@ class SyncServerStatusChecker : public net::URLFetcherDelegate {
source->GetResponseAsString(&data);
running_ =
(source->GetStatus().status() == net::URLRequestStatus::SUCCESS &&
- source->GetResponseCode() == 200 && data.find("ok") == 0);
+ source->GetResponseCode() == 200 &&
+ base::StartsWith(data, "ok", base::CompareCase::SENSITIVE));
base::MessageLoop::current()->QuitWhenIdle();
}
« no previous file with comments | « chrome/browser/shell_integration_linux.cc ('k') | chrome/browser/ui/startup/startup_browser_creator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698