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

Unified Diff: chrome/browser/chromeos/policy/recommendation_restorer.cc

Issue 155573003: Add policy management for on-screen keyboard. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update recommendation restorer. Created 6 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
Index: chrome/browser/chromeos/policy/recommendation_restorer.cc
diff --git a/chrome/browser/chromeos/policy/recommendation_restorer.cc b/chrome/browser/chromeos/policy/recommendation_restorer.cc
index aaf19e08b155627ae23fe08d63688e0877dd52e6..7c2ec1094de535b2da6ab75fc68f20a2751d7803 100644
--- a/chrome/browser/chromeos/policy/recommendation_restorer.cc
+++ b/chrome/browser/chromeos/policy/recommendation_restorer.cc
@@ -49,6 +49,9 @@ RecommendationRestorer::RecommendationRestorer(Profile* profile)
pref_change_registrar_.Add(prefs::kScreenMagnifierType,
base::Bind(&RecommendationRestorer::Restore,
base::Unretained(this), true));
+ pref_change_registrar_.Add(prefs::kVirtualKeyboardEnabled,
+ base::Bind(&RecommendationRestorer::Restore,
+ base::Unretained(this), true));
notification_registrar_.Add(this, chrome::NOTIFICATION_LOGIN_USER_CHANGED,
content::NotificationService::AllSources());
@@ -117,6 +120,7 @@ void RecommendationRestorer::RestoreAll() {
Restore(false, prefs::kHighContrastEnabled);
Restore(false, prefs::kScreenMagnifierEnabled);
Restore(false, prefs::kScreenMagnifierType);
+ Restore(false, prefs::kVirtualKeyboardEnabled);
}
void RecommendationRestorer::StartTimer() {

Powered by Google App Engine
This is Rietveld 408576698