OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/profile_error_dialog.h" | 5 #include "chrome/browser/ui/profile_error_dialog.h" |
6 | 6 |
7 #include "base/auto_reset.h" | 7 #include "base/auto_reset.h" |
8 #include "base/base_switches.h" | 8 #include "base/base_switches.h" |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/metrics/histogram.h" | 10 #include "base/metrics/histogram.h" |
11 #include "build/build_config.h" | 11 #include "build/build_config.h" |
12 #include "chrome/browser/ui/chrome_pages.h" | 12 #include "chrome/browser/ui/chrome_pages.h" |
13 #include "chrome/browser/ui/simple_message_box.h" | 13 #include "chrome/browser/ui/simple_message_box.h" |
14 #include "chrome/grit/chromium_strings.h" | |
15 #include "chrome/grit/generated_resources.h" | 14 #include "chrome/grit/generated_resources.h" |
16 #include "ui/base/l10n/l10n_util.h" | 15 #include "ui/base/l10n/l10n_util.h" |
17 | 16 |
18 namespace { | 17 namespace { |
19 | 18 |
20 #if !defined(OS_ANDROID) | 19 #if !defined(OS_ANDROID) |
21 constexpr char kProfileErrorFeedbackCategory[] = "FEEDBACK_PROFILE_ERROR"; | 20 constexpr char kProfileErrorFeedbackCategory[] = "FEEDBACK_PROFILE_ERROR"; |
22 #endif // !defined(OS_ANDROID) | 21 #endif // !defined(OS_ANDROID) |
23 | 22 |
24 } // namespace | 23 } // namespace |
(...skipping 21 matching lines...) Expand all Loading... |
46 l10n_util::GetStringUTF16(IDS_PROFILE_ERROR_DIALOG_CHECKBOX))) { | 45 l10n_util::GetStringUTF16(IDS_PROFILE_ERROR_DIALOG_CHECKBOX))) { |
47 std::string feedback_description = | 46 std::string feedback_description = |
48 l10n_util::GetStringUTF8(IDS_PROFILE_ERROR_FEEDBACK_DESCRIPTION); | 47 l10n_util::GetStringUTF8(IDS_PROFILE_ERROR_FEEDBACK_DESCRIPTION); |
49 feedback_description += "\n" + diagnostics; | 48 feedback_description += "\n" + diagnostics; |
50 | 49 |
51 chrome::ShowFeedbackPage(nullptr, feedback_description, | 50 chrome::ShowFeedbackPage(nullptr, feedback_description, |
52 kProfileErrorFeedbackCategory); | 51 kProfileErrorFeedbackCategory); |
53 } | 52 } |
54 #endif | 53 #endif |
55 } | 54 } |
OLD | NEW |