Chromium Code Reviews| Index: chrome/browser/instant/instant_field_trial.cc |
| diff --git a/chrome/browser/instant/instant_field_trial.cc b/chrome/browser/instant/instant_field_trial.cc |
| index 38ee088d11e03d1a6519d644b2eccdb447d3d3b6..8bdde3120f5a4dc53e336d159d26b88df6f0e614 100644 |
| --- a/chrome/browser/instant/instant_field_trial.cc |
| +++ b/chrome/browser/instant/instant_field_trial.cc |
| @@ -81,3 +81,16 @@ std::string InstantFieldTrial::GetGroupName(Profile* profile) { |
| NOTREACHED(); |
| return "InstantUnknown"; |
| } |
| + |
| +// static |
| +std::string InstantFieldTrial::GetGroupAsUrlParam(Profile* profile) { |
| + switch (GetGroup(profile)) { |
| + case INACTIVE: return ""; |
|
Peter Kasting
2011/08/10 20:54:06
Nit: Use std::string() instead of "" (2 places)
|
| + case CONTROL1: return "ix=c1&"; |
| + case CONTROL2: return "ix=c2&"; |
| + case EXPERIMENT1: return "ix=e1&"; |
| + case EXPERIMENT2: return "ix=e2&"; |
| + } |
| + NOTREACHED(); |
| + return ""; |
| +} |