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

Unified Diff: chrome/browser/prefs/browser_prefs.cc

Issue 1737413002: Modified the behavior of "Hide Toolbar in Full Screen" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Feb -> March Created 4 years, 10 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 | « chrome/app/generated_resources.grd ('k') | chrome/browser/ui/browser_commands_mac.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/prefs/browser_prefs.cc
diff --git a/chrome/browser/prefs/browser_prefs.cc b/chrome/browser/prefs/browser_prefs.cc
index 1b37e180b490b5d860bac2c399ce8429379d2112..a4c06a9b0fca9d12a21659260bc4ece2a782af75 100644
--- a/chrome/browser/prefs/browser_prefs.cc
+++ b/chrome/browser/prefs/browser_prefs.cc
@@ -625,6 +625,20 @@ void MigrateObsoleteProfilePrefs(Profile* profile) {
profile_prefs->ClearPref(kShownAutoLaunchInfobarDeprecated);
#endif
+#if defined(OS_MACOSX)
+ // Migrate the value of kHideFullscreenToolbar to kShowFullscreenToolbar if
+ // it was set by the user. See crbug.com/590827.
+ // Added 03/2016.
+ const PrefService::Preference* hide_pref =
+ profile_prefs->FindPreference(prefs::kHideFullscreenToolbar);
+ if (!hide_pref->IsDefaultValue()) {
+ bool hide_pref_value =
+ profile_prefs->GetBoolean(prefs::kHideFullscreenToolbar);
+ profile_prefs->SetBoolean(prefs::kShowFullscreenToolbar, !hide_pref_value);
+ profile_prefs->ClearPref(prefs::kHideFullscreenToolbar);
+ }
+#endif
+
// Added 12/1015.
profile_prefs->ClearPref(kURLsToRestoreOnStartupOld);
profile_prefs->ClearPref(kRestoreStartupURLsMigrationTime);
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/ui/browser_commands_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698