| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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/profile_resetter/resettable_settings_snapshot.h" | 5 #include "chrome/browser/profile_resetter/resettable_settings_snapshot.h" |
| 6 | 6 |
| 7 #include "base/json/json_writer.h" | 7 #include "base/json/json_writer.h" |
| 8 #include "base/prefs/pref_service.h" | 8 #include "base/prefs/pref_service.h" |
| 9 #include "base/strings/string_util.h" | 9 #include "base/strings/string_util.h" |
| 10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
| 11 #include "base/synchronization/cancellation_flag.h" | 11 #include "base/synchronization/cancellation_flag.h" |
| 12 #include "base/values.h" | 12 #include "base/values.h" |
| 13 #include "chrome/browser/browser_process.h" | 13 #include "chrome/browser/browser_process.h" |
| 14 #include "chrome/browser/profiles/profile.h" | 14 #include "chrome/browser/profiles/profile.h" |
| 15 #include "chrome/browser/search_engines/template_url_service_factory.h" | 15 #include "chrome/browser/search_engines/template_url_service_factory.h" |
| 16 #include "chrome/common/chrome_content_client.h" | 16 #include "chrome/common/chrome_content_client.h" |
| 17 #include "chrome/common/chrome_version_info.h" | 17 #include "chrome/common/chrome_version_info.h" |
| 18 #include "chrome/common/pref_names.h" | 18 #include "chrome/common/pref_names.h" |
| 19 #include "chrome/grit/generated_resources.h" |
| 20 #include "chrome/grit/google_chrome_strings.h" |
| 19 #include "components/feedback/feedback_data.h" | 21 #include "components/feedback/feedback_data.h" |
| 20 #include "components/feedback/feedback_util.h" | 22 #include "components/feedback/feedback_util.h" |
| 21 #include "components/search_engines/template_url_service.h" | 23 #include "components/search_engines/template_url_service.h" |
| 22 #include "content/public/browser/browser_thread.h" | 24 #include "content/public/browser/browser_thread.h" |
| 23 #include "extensions/browser/extension_registry.h" | 25 #include "extensions/browser/extension_registry.h" |
| 24 #include "grit/generated_resources.h" | |
| 25 #include "grit/google_chrome_strings.h" | |
| 26 #include "ui/base/l10n/l10n_util.h" | 26 #include "ui/base/l10n/l10n_util.h" |
| 27 | 27 |
| 28 using feedback::FeedbackData; | 28 using feedback::FeedbackData; |
| 29 | 29 |
| 30 namespace { | 30 namespace { |
| 31 | 31 |
| 32 // Feedback bucket label. | 32 // Feedback bucket label. |
| 33 const char kProfileResetWebUIBucket[] = "ProfileResetReport"; | 33 const char kProfileResetWebUIBucket[] = "ProfileResetReport"; |
| 34 | 34 |
| 35 // Dictionary keys for feedback report. | 35 // Dictionary keys for feedback report. |
| (...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 348 extension_names += '\n'; | 348 extension_names += '\n'; |
| 349 extension_names += i->second; | 349 extension_names += i->second; |
| 350 } | 350 } |
| 351 if (!extension_names.empty()) { | 351 if (!extension_names.empty()) { |
| 352 AddPair(list.get(), | 352 AddPair(list.get(), |
| 353 l10n_util::GetStringUTF16(IDS_RESET_PROFILE_SETTINGS_EXTENSIONS), | 353 l10n_util::GetStringUTF16(IDS_RESET_PROFILE_SETTINGS_EXTENSIONS), |
| 354 extension_names); | 354 extension_names); |
| 355 } | 355 } |
| 356 return list.Pass(); | 356 return list.Pass(); |
| 357 } | 357 } |
| OLD | NEW |