Chromium Code Reviews| Index: chrome/browser/about_flags.cc |
| diff --git a/chrome/browser/about_flags.cc b/chrome/browser/about_flags.cc |
| index e635a104f094fcd29cf8360d0136fb1744a559e3..b2a5c5bb1ac31910ca409d95921f6f22e2b3e421 100644 |
| --- a/chrome/browser/about_flags.cc |
| +++ b/chrome/browser/about_flags.cc |
| @@ -675,6 +675,9 @@ class FlagsState { |
| // Extracts the list of enabled lab experiments from preferences and stores them |
| // in a set. |
| void GetEnabledFlags(const PrefService* prefs, std::set<std::string>* result) { |
| +#if defined(OS_ANDROID) |
| + NOTIMPLEMENTED() << "Experimental labs aren't supported on Android."; |
|
Andrew T Wilson (Slow)
2012/03/27 17:33:16
I think it would be ideal if you could remove abou
Yaron
2012/03/27 19:06:52
Done.
|
| +#else |
| const ListValue* enabled_experiments = prefs->GetList( |
| prefs::kEnabledLabsExperiments); |
| if (!enabled_experiments) |
| @@ -690,11 +693,15 @@ void GetEnabledFlags(const PrefService* prefs, std::set<std::string>* result) { |
| } |
| result->insert(experiment_name); |
| } |
| +#endif // #if defined(OS_ANDROID) |
| } |
| // Takes a set of enabled lab experiments |
| void SetEnabledFlags( |
| PrefService* prefs, const std::set<std::string>& enabled_experiments) { |
| +#if defined(OS_ANDROID) |
| + NOTIMPLEMENTED() << "Experimental labs aren't supported on Android."; |
| +#else |
| ListPrefUpdate update(prefs, prefs::kEnabledLabsExperiments); |
| ListValue* experiments_list = update.Get(); |
| @@ -704,6 +711,7 @@ void SetEnabledFlags( |
| ++it) { |
| experiments_list->Append(new StringValue(*it)); |
| } |
| +#endif // #if defined(OS_ANDROID) |
| } |
| // Returns the name used in prefs for the choice at the specified index. |