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

Unified Diff: chrome/browser/chromeos/login/wizard_controller_browsertest.cc

Issue 1220963005: Update base::StartsWith calls to new form (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@starts_with
Patch Set: Created 5 years, 6 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/chromeos/login/wizard_controller_browsertest.cc
diff --git a/chrome/browser/chromeos/login/wizard_controller_browsertest.cc b/chrome/browser/chromeos/login/wizard_controller_browsertest.cc
index ed4222fa73226978cbddd803617ec59b75af857f..3ee0699dcab8f04c8fc1395ffdbe88f0598698d3 100644
--- a/chrome/browser/chromeos/login/wizard_controller_browsertest.cc
+++ b/chrome/browser/chromeos/login/wizard_controller_browsertest.cc
@@ -383,16 +383,17 @@ class WizardControllerTestURLFetcherFactory
const GURL& url,
net::URLFetcher::RequestType request_type,
net::URLFetcherDelegate* d) override {
- if (base::StartsWithASCII(
+ if (base::StartsWith(
url.spec(),
SimpleGeolocationProvider::DefaultGeolocationProviderURL().spec(),
- true)) {
+ base::CompareCase::SENSITIVE)) {
return scoped_ptr<net::URLFetcher>(new net::FakeURLFetcher(
url, d, std::string(kGeolocationResponseBody), net::HTTP_OK,
net::URLRequestStatus::SUCCESS));
}
- if (base::StartsWithASCII(
- url.spec(), chromeos::DefaultTimezoneProviderURL().spec(), true)) {
+ if (base::StartsWith(url.spec(),
+ chromeos::DefaultTimezoneProviderURL().spec(),
+ base::CompareCase::SENSITIVE)) {
return scoped_ptr<net::URLFetcher>(new net::FakeURLFetcher(
url, d, std::string(kTimezoneResponseBody), net::HTTP_OK,
net::URLRequestStatus::SUCCESS));

Powered by Google App Engine
This is Rietveld 408576698