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

Unified Diff: chrome/browser/ui/webui/options2/chromeos/core_chromeos_options_handler2.cc

Issue 9464053: Hide/Disable several (meaningless) options in Settings uber-page for Guest. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: No change picture button anymore Created 8 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/ui/webui/options2/chromeos/core_chromeos_options_handler2.cc
diff --git a/chrome/browser/ui/webui/options2/chromeos/core_chromeos_options_handler2.cc b/chrome/browser/ui/webui/options2/chromeos/core_chromeos_options_handler2.cc
index f2067cdb2431e62cc7b8f1a030834f79bf5e6290..a92862a24d0f011bd6a40ec7e472c0f6e7211b2a 100644
--- a/chrome/browser/ui/webui/options2/chromeos/core_chromeos_options_handler2.cc
+++ b/chrome/browser/ui/webui/options2/chromeos/core_chromeos_options_handler2.cc
@@ -9,6 +9,7 @@
#include "base/bind.h"
#include "base/string_number_conversions.h"
#include "base/string_util.h"
+#include "base/utf_string_conversions.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/chromeos/cros_settings.h"
#include "chrome/browser/chromeos/login/user_manager.h"
@@ -207,6 +208,17 @@ void CoreChromeOSOptionsHandler::StopObservingPref(const std::string& path) {
::options2::CoreOptionsHandler::StopObservingPref(path);
}
+void CoreChromeOSOptionsHandler::GetLocalizedValues(
+ DictionaryValue* localized_strings) {
+ DCHECK(localized_strings);
+ CoreOptionsHandler::GetLocalizedValues(localized_strings);
+
+ localized_strings->SetString("logged_in_as_guest",
James Hawkins 2012/02/28 20:03:35 Start of parameters must be aligned on the same co
Denis Kuznetsov (DE-MUC) 2012/02/29 08:41:43 Done.
+ chromeos::UserManager::Get()->IsLoggedInAsGuest() ?
+ ASCIIToUTF16("true") : ASCIIToUTF16("false"));
James Hawkins 2012/02/28 20:03:35 Must indent 4 spaces.
Denis Kuznetsov (DE-MUC) 2012/02/29 08:41:43 Done.
+}
+
+
void CoreChromeOSOptionsHandler::Observe(
int type,
const content::NotificationSource& source,

Powered by Google App Engine
This is Rietveld 408576698