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

Unified Diff: chrome/browser/chrome_browser_main.cc

Issue 566763002: Use a std::string to store return value from FieldTrialList::FindFullName() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chrome_browser_main.cc
diff --git a/chrome/browser/chrome_browser_main.cc b/chrome/browser/chrome_browser_main.cc
index fc9377f532558f7b71848ea4c054b63bdf2c258d..2b75611a7429be9e564c7d6269156c4e50b65bf6 100644
--- a/chrome/browser/chrome_browser_main.cc
+++ b/chrome/browser/chrome_browser_main.cc
@@ -1384,14 +1384,14 @@ int ChromeBrowserMainParts::PreMainMessageLoopRunImpl() {
const char kEnabledHttpOnlyGroupName[] = "EnabledHttpOnly";
const char kDisabledAllGroupName[] = "DisabledAll";
- base::StringPiece sdch_trial_group =
+ std::string sdch_trial_group =
base::FieldTrialList::FindFullName(kSdchFieldTrialName);
- if (sdch_trial_group.starts_with(kEnabledAllGroupName)) {
+ if (sdch_trial_group == kEnabledAllGroupName) {
mef 2014/09/12 13:28:33 I wonder if exact comparison is the right thing he
Randy Smith (Not in Mondays) 2014/09/12 17:49:42 Yeah ... I looked through the code and it looked l
net::SdchManager::EnableSecureSchemeSupport(true);
net::SdchManager::EnableSdchSupport(true);
- } else if (sdch_trial_group.starts_with(kEnabledHttpOnlyGroupName)) {
+ } else if (sdch_trial_group == kEnabledHttpOnlyGroupName) {
net::SdchManager::EnableSdchSupport(true);
- } else if (sdch_trial_group.starts_with(kDisabledAllGroupName)) {
+ } else if (sdch_trial_group == kDisabledAllGroupName) {
net::SdchManager::EnableSdchSupport(false);
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698