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

Unified Diff: chrome/browser/chromeos/preferences.cc

Issue 11991002: Merge 176800 (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1364/src/
Patch Set: Created 7 years, 11 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/preferences.cc
===================================================================
--- chrome/browser/chromeos/preferences.cc (revision 177312)
+++ chrome/browser/chromeos/preferences.cc (working copy)
@@ -274,13 +274,15 @@
"0.0.0.0",
PrefService::SYNCABLE_PREF);
- // OAuth1 all access token and secret pair.
- prefs->RegisterStringPref(prefs::kOAuth1Token,
- "",
- PrefService::UNSYNCABLE_PREF);
- prefs->RegisterStringPref(prefs::kOAuth1Secret,
- "",
- PrefService::UNSYNCABLE_PREF);
+ if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kForceOAuth1)) {
+ // Legacy OAuth1 all access token and secret pair.
+ prefs->RegisterStringPref(prefs::kOAuth1Token,
+ "",
+ PrefService::UNSYNCABLE_PREF);
+ prefs->RegisterStringPref(prefs::kOAuth1Secret,
+ "",
+ PrefService::UNSYNCABLE_PREF);
+ }
// TODO(wad): Once UI is connected, a final default can be set. At that point
// change this pref from UNSYNCABLE to SYNCABLE.
« no previous file with comments | « chrome/browser/chromeos/login/user_manager_impl.cc ('k') | chrome/browser/resources/chromeos/login/user_pod_row.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698