| Index: chrome/browser/chromeos/preferences.cc
|
| diff --git a/chrome/browser/chromeos/preferences.cc b/chrome/browser/chromeos/preferences.cc
|
| index 5aa9e7f777f4ea2e779a4b1056d12a93f7c16a50..8a4e7388a8fa18da0223a8564419f1a9fccc1e2e 100644
|
| --- a/chrome/browser/chromeos/preferences.cc
|
| +++ b/chrome/browser/chromeos/preferences.cc
|
| @@ -274,13 +274,15 @@ void Preferences::RegisterUserPrefs(PrefServiceSyncable* prefs) {
|
| "0.0.0.0",
|
| PrefServiceSyncable::SYNCABLE_PREF);
|
|
|
| - // OAuth1 all access token and secret pair.
|
| - prefs->RegisterStringPref(prefs::kOAuth1Token,
|
| - "",
|
| - PrefServiceSyncable::UNSYNCABLE_PREF);
|
| - prefs->RegisterStringPref(prefs::kOAuth1Secret,
|
| - "",
|
| - PrefServiceSyncable::UNSYNCABLE_PREF);
|
| + if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kForceOAuth1)) {
|
| + // Legacy OAuth1 all access token and secret pair.
|
| + prefs->RegisterStringPref(prefs::kOAuth1Token,
|
| + "",
|
| + PrefServiceSyncable::UNSYNCABLE_PREF);
|
| + prefs->RegisterStringPref(prefs::kOAuth1Secret,
|
| + "",
|
| + PrefServiceSyncable::UNSYNCABLE_PREF);
|
| + }
|
|
|
| // TODO(wad): Once UI is connected, a final default can be set. At that point
|
| // change this pref from UNSYNCABLE to SYNCABLE.
|
|
|