| 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/extensions/api/feedback_private/feedback_private_api.h" | 5 #include "chrome/browser/extensions/api/feedback_private/feedback_private_api.h" |
| 6 | 6 |
| 7 #include "base/lazy_instance.h" | 7 #include "base/lazy_instance.h" |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/strings/string_number_conversions.h" | 9 #include "base/strings/string_number_conversions.h" |
| 10 #include "base/strings/string_util.h" | 10 #include "base/strings/string_util.h" |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 SET_STRING("attach-file-to-big", IDS_FEEDBACK_ATTACH_FILE_TO_BIG); | 115 SET_STRING("attach-file-to-big", IDS_FEEDBACK_ATTACH_FILE_TO_BIG); |
| 116 SET_STRING("reading-file", IDS_FEEDBACK_READING_FILE); | 116 SET_STRING("reading-file", IDS_FEEDBACK_READING_FILE); |
| 117 SET_STRING("send-report", IDS_FEEDBACK_SEND_REPORT); | 117 SET_STRING("send-report", IDS_FEEDBACK_SEND_REPORT); |
| 118 SET_STRING("cancel", IDS_CANCEL); | 118 SET_STRING("cancel", IDS_CANCEL); |
| 119 SET_STRING("no-description", IDS_FEEDBACK_NO_DESCRIPTION); | 119 SET_STRING("no-description", IDS_FEEDBACK_NO_DESCRIPTION); |
| 120 SET_STRING("privacy-note", IDS_FEEDBACK_PRIVACY_NOTE); | 120 SET_STRING("privacy-note", IDS_FEEDBACK_PRIVACY_NOTE); |
| 121 SET_STRING("performance-trace", | 121 SET_STRING("performance-trace", |
| 122 IDS_FEEDBACK_INCLUDE_PERFORMANCE_TRACE_CHECKBOX); | 122 IDS_FEEDBACK_INCLUDE_PERFORMANCE_TRACE_CHECKBOX); |
| 123 #undef SET_STRING | 123 #undef SET_STRING |
| 124 | 124 |
| 125 webui::SetFontAndTextDirection(dict); | 125 webui::SetTextDirection(dict); |
| 126 | 126 |
| 127 if (test_callback_ && !test_callback_->is_null()) | 127 if (test_callback_ && !test_callback_->is_null()) |
| 128 test_callback_->Run(); | 128 test_callback_->Run(); |
| 129 | 129 |
| 130 return true; | 130 return true; |
| 131 } | 131 } |
| 132 | 132 |
| 133 bool FeedbackPrivateGetUserEmailFunction::RunSync() { | 133 bool FeedbackPrivateGetUserEmailFunction::RunSync() { |
| 134 FeedbackService* service = | 134 FeedbackService* service = |
| 135 FeedbackPrivateAPI::GetFactoryInstance()->Get(GetProfile())->GetService(); | 135 FeedbackPrivateAPI::GetFactoryInstance()->Get(GetProfile())->GetService(); |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 228 | 228 |
| 229 void FeedbackPrivateSendFeedbackFunction::OnCompleted( | 229 void FeedbackPrivateSendFeedbackFunction::OnCompleted( |
| 230 bool success) { | 230 bool success) { |
| 231 results_ = feedback_private::SendFeedback::Results::Create( | 231 results_ = feedback_private::SendFeedback::Results::Create( |
| 232 success ? feedback_private::STATUS_SUCCESS : | 232 success ? feedback_private::STATUS_SUCCESS : |
| 233 feedback_private::STATUS_DELAYED); | 233 feedback_private::STATUS_DELAYED); |
| 234 SendResponse(true); | 234 SendResponse(true); |
| 235 } | 235 } |
| 236 | 236 |
| 237 } // namespace extensions | 237 } // namespace extensions |
| OLD | NEW |