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

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

Issue 3859003: FBTF: Even more ctor/virtual deinlining. (Closed) Base URL: http://git.chromium.org/git/chromium.git
Patch Set: Created 10 years, 2 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/options/core_options_handler.h" 5 #include "chrome/browser/dom_ui/options/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"
11 #include "base/values.h" 11 #include "base/values.h"
12 #include "chrome/browser/metrics/user_metrics.h" 12 #include "chrome/browser/metrics/user_metrics.h"
13 #include "chrome/browser/prefs/pref_service.h" 13 #include "chrome/browser/prefs/pref_service.h"
14 #include "chrome/browser/profile.h" 14 #include "chrome/browser/profile.h"
15 #include "chrome/common/notification_service.h" 15 #include "chrome/common/notification_service.h"
16 #include "chrome/common/notification_type.h" 16 #include "chrome/common/notification_type.h"
17 #include "grit/browser_resources.h" 17 #include "grit/browser_resources.h"
18 #include "grit/chromium_strings.h" 18 #include "grit/chromium_strings.h"
19 #include "grit/generated_resources.h" 19 #include "grit/generated_resources.h"
20 #include "grit/locale_settings.h" 20 #include "grit/locale_settings.h"
21 #include "grit/theme_resources.h" 21 #include "grit/theme_resources.h"
22 22
23 CoreOptionsHandler::CoreOptionsHandler() { 23 CoreOptionsHandler::CoreOptionsHandler() {}
24 } 24
25 CoreOptionsHandler::~CoreOptionsHandler() {}
25 26
26 void CoreOptionsHandler::GetLocalizedValues( 27 void CoreOptionsHandler::GetLocalizedValues(
27 DictionaryValue* localized_strings) { 28 DictionaryValue* localized_strings) {
28 DCHECK(localized_strings); 29 DCHECK(localized_strings);
29 // Main 30 // Main
30 localized_strings->SetString("title", 31 localized_strings->SetString("title",
31 l10n_util::GetStringUTF16(IDS_SETTINGS_TITLE)); 32 l10n_util::GetStringUTF16(IDS_SETTINGS_TITLE));
32 localized_strings->SetString("browserPage", 33 localized_strings->SetString("browserPage",
33 l10n_util::GetStringUTF16(IDS_OPTIONS_GENERAL_TAB_LABEL)); 34 l10n_util::GetStringUTF16(IDS_OPTIONS_GENERAL_TAB_LABEL));
34 localized_strings->SetString("personalPage", 35 localized_strings->SetString("personalPage",
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 DictionaryValue* dict = new DictionaryValue; 340 DictionaryValue* dict = new DictionaryValue;
340 dict->Set("value", pref->GetValue()->DeepCopy()); 341 dict->Set("value", pref->GetValue()->DeepCopy());
341 dict->SetBoolean("managed", pref->IsManaged()); 342 dict->SetBoolean("managed", pref->IsManaged());
342 result_value.Append(dict); 343 result_value.Append(dict);
343 344
344 dom_ui_->CallJavascriptFunction(callback_function, result_value); 345 dom_ui_->CallJavascriptFunction(callback_function, result_value);
345 } 346 }
346 } 347 }
347 } 348 }
348 349
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698