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

Side by Side Diff: chrome/browser/dom_ui/core_options_handler.cc

Issue 3108018: Display a banner above each panel that contains managed options.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/dom_ui/core_options_handler.h" 5 #include "chrome/browser/dom_ui/core_options_handler.h"
6 6
7 #include "app/l10n_util.h" 7 #include "app/l10n_util.h"
8 #include "base/string16.h" 8 #include "base/string16.h"
9 #include "base/string_number_conversions.h" 9 #include "base/string_number_conversions.h"
10 #include "base/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 localized_strings->SetString("languageHangulPage", 60 localized_strings->SetString("languageHangulPage",
61 l10n_util::GetStringUTF16( 61 l10n_util::GetStringUTF16(
62 IDS_OPTIONS_SETTINGS_LANGUAGES_HANGUL_SETTINGS_TITLE)); 62 IDS_OPTIONS_SETTINGS_LANGUAGES_HANGUL_SETTINGS_TITLE));
63 localized_strings->SetString("languageMozcPage", 63 localized_strings->SetString("languageMozcPage",
64 l10n_util::GetStringUTF16( 64 l10n_util::GetStringUTF16(
65 IDS_OPTIONS_SETTINGS_LANGUAGES_MOZC_SETTINGS_TITLE)); 65 IDS_OPTIONS_SETTINGS_LANGUAGES_MOZC_SETTINGS_TITLE));
66 localized_strings->SetString("languagePinyinPage", 66 localized_strings->SetString("languagePinyinPage",
67 l10n_util::GetStringUTF16( 67 l10n_util::GetStringUTF16(
68 IDS_OPTIONS_SETTINGS_LANGUAGES_PINYIN_SETTINGS_TITLE)); 68 IDS_OPTIONS_SETTINGS_LANGUAGES_PINYIN_SETTINGS_TITLE));
69 #endif 69 #endif
70 localized_strings->SetString("managedPrefsBannerText",
71 l10n_util::GetStringUTF16(IDS_OPTIONS_MANAGED_PREFS));
70 72
71 localized_strings->SetString("ok", 73 localized_strings->SetString("ok",
72 l10n_util::GetStringUTF16(IDS_OK)); 74 l10n_util::GetStringUTF16(IDS_OK));
73 localized_strings->SetString("cancel", 75 localized_strings->SetString("cancel",
74 l10n_util::GetStringUTF16(IDS_CANCEL)); 76 l10n_util::GetStringUTF16(IDS_CANCEL));
75 localized_strings->SetString("delete", 77 localized_strings->SetString("delete",
76 l10n_util::GetStringUTF16(IDS_DELETE)); 78 l10n_util::GetStringUTF16(IDS_DELETE));
77 localized_strings->SetString("edit", 79 localized_strings->SetString("edit",
78 l10n_util::GetStringUTF16(IDS_EDIT)); 80 l10n_util::GetStringUTF16(IDS_EDIT));
79 localized_strings->SetString("learnMore", 81 localized_strings->SetString("learnMore",
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 DictionaryValue* dict = new DictionaryValue; 296 DictionaryValue* dict = new DictionaryValue;
295 dict->Set("value", pref->GetValue()->DeepCopy()); 297 dict->Set("value", pref->GetValue()->DeepCopy());
296 dict->SetBoolean("managed", pref->IsManaged()); 298 dict->SetBoolean("managed", pref->IsManaged());
297 result_value.Append(dict); 299 result_value.Append(dict);
298 300
299 dom_ui_->CallJavascriptFunction(callback_function, result_value); 301 dom_ui_->CallJavascriptFunction(callback_function, result_value);
300 } 302 }
301 } 303 }
302 } 304 }
303 305
OLDNEW
« no previous file with comments | « chrome/browser/dom_ui/browser_options_handler.cc ('k') | chrome/browser/dom_ui/options_managed_banner_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698