OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/ui/webui/options/reset_profile_settings_handler.h" | 5 #include "chrome/browser/ui/webui/options/reset_profile_settings_handler.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
9 #include "base/metrics/histogram.h" | 9 #include "base/metrics/histogram.h" |
10 #include "base/prefs/pref_service.h" | 10 #include "base/prefs/pref_service.h" |
11 #include "base/strings/string16.h" | 11 #include "base/strings/string16.h" |
12 #include "base/values.h" | 12 #include "base/values.h" |
13 #include "chrome/browser/google/google_brand.h" | 13 #include "chrome/browser/google/google_brand.h" |
14 #include "chrome/browser/profile_resetter/brandcode_config_fetcher.h" | 14 #include "chrome/browser/profile_resetter/brandcode_config_fetcher.h" |
15 #include "chrome/browser/profile_resetter/brandcoded_default_settings.h" | 15 #include "chrome/browser/profile_resetter/brandcoded_default_settings.h" |
16 #include "chrome/browser/profile_resetter/profile_resetter.h" | 16 #include "chrome/browser/profile_resetter/profile_resetter.h" |
17 #include "chrome/browser/profile_resetter/resettable_settings_snapshot.h" | 17 #include "chrome/browser/profile_resetter/resettable_settings_snapshot.h" |
18 #include "chrome/browser/profiles/profile.h" | 18 #include "chrome/browser/profiles/profile.h" |
19 #include "chrome/common/pref_names.h" | 19 #include "chrome/common/pref_names.h" |
20 #include "chrome/common/url_constants.h" | 20 #include "chrome/common/url_constants.h" |
21 #include "content/public/browser/user_metrics.h" | 21 #include "content/public/browser/user_metrics.h" |
22 #include "content/public/browser/web_ui.h" | 22 #include "content/public/browser/web_ui.h" |
23 #include "grit/generated_resources.h" | 23 #include "grit/generated_resources.h" |
24 #include "ui/base/l10n/l10n_util.h" | |
25 | 24 |
26 namespace options { | 25 namespace options { |
27 | 26 |
28 ResetProfileSettingsHandler::ResetProfileSettingsHandler() { | 27 ResetProfileSettingsHandler::ResetProfileSettingsHandler() { |
29 google_brand::GetBrand(&brandcode_); | 28 google_brand::GetBrand(&brandcode_); |
30 } | 29 } |
31 | 30 |
32 ResetProfileSettingsHandler::~ResetProfileSettingsHandler() {} | 31 ResetProfileSettingsHandler::~ResetProfileSettingsHandler() {} |
33 | 32 |
34 void ResetProfileSettingsHandler::InitializeHandler() { | 33 void ResetProfileSettingsHandler::InitializeHandler() { |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 Profile::FromWebUI(web_ui()), | 174 Profile::FromWebUI(web_ui()), |
176 *setting_snapshot_); | 175 *setting_snapshot_); |
177 base::DictionaryValue feedback_info; | 176 base::DictionaryValue feedback_info; |
178 feedback_info.Set("feedbackInfo", list.release()); | 177 feedback_info.Set("feedbackInfo", list.release()); |
179 web_ui()->CallJavascriptFunction( | 178 web_ui()->CallJavascriptFunction( |
180 "ResetProfileSettingsOverlay.setFeedbackInfo", | 179 "ResetProfileSettingsOverlay.setFeedbackInfo", |
181 feedback_info); | 180 feedback_info); |
182 } | 181 } |
183 | 182 |
184 } // namespace options | 183 } // namespace options |
OLD | NEW |