| 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_macros.h" | 10 #include "base/metrics/histogram_macros.h" |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 | 41 |
| 42 base::AutoReset<bool> resetter(&is_showing_profile_error_dialog, true); | 42 base::AutoReset<bool> resetter(&is_showing_profile_error_dialog, true); |
| 43 if (chrome::ShowWarningMessageBoxWithCheckbox( | 43 if (chrome::ShowWarningMessageBoxWithCheckbox( |
| 44 nullptr, l10n_util::GetStringUTF16(IDS_PROFILE_ERROR_DIALOG_TITLE), | 44 nullptr, l10n_util::GetStringUTF16(IDS_PROFILE_ERROR_DIALOG_TITLE), |
| 45 l10n_util::GetStringUTF16(message_id), | 45 l10n_util::GetStringUTF16(message_id), |
| 46 l10n_util::GetStringUTF16(IDS_PROFILE_ERROR_DIALOG_CHECKBOX))) { | 46 l10n_util::GetStringUTF16(IDS_PROFILE_ERROR_DIALOG_CHECKBOX))) { |
| 47 std::string feedback_description = | 47 std::string feedback_description = |
| 48 l10n_util::GetStringUTF8(IDS_PROFILE_ERROR_FEEDBACK_DESCRIPTION); | 48 l10n_util::GetStringUTF8(IDS_PROFILE_ERROR_FEEDBACK_DESCRIPTION); |
| 49 feedback_description += "\n" + diagnostics; | 49 feedback_description += "\n" + diagnostics; |
| 50 | 50 |
| 51 chrome::ShowFeedbackPage(nullptr, feedback_description, | 51 chrome::ShowFeedbackPage(nullptr, chrome::kFeedbackSourceProfileErrorDialog, |
| 52 feedback_description, |
| 52 kProfileErrorFeedbackCategory); | 53 kProfileErrorFeedbackCategory); |
| 53 } | 54 } |
| 54 #endif | 55 #endif |
| 55 } | 56 } |
| OLD | NEW |