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" |
11 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
12 #include "base/values.h" | 12 #include "base/values.h" |
13 #include "chrome/browser/extensions/api/feedback_private/feedback_service.h" | 13 #include "chrome/browser/extensions/api/feedback_private/feedback_service.h" |
14 #include "chrome/browser/profiles/profile.h" | 14 #include "chrome/browser/profiles/profile.h" |
| 15 #include "chrome/grit/generated_resources.h" |
15 #include "components/feedback/tracing_manager.h" | 16 #include "components/feedback/tracing_manager.h" |
16 #include "extensions/browser/event_router.h" | 17 #include "extensions/browser/event_router.h" |
17 #include "grit/generated_resources.h" | |
18 #include "ui/base/l10n/l10n_util.h" | 18 #include "ui/base/l10n/l10n_util.h" |
19 #include "ui/base/webui/web_ui_util.h" | 19 #include "ui/base/webui/web_ui_util.h" |
20 #include "url/url_util.h" | 20 #include "url/url_util.h" |
21 | 21 |
22 using feedback::FeedbackData; | 22 using feedback::FeedbackData; |
23 | 23 |
24 namespace { | 24 namespace { |
25 | 25 |
26 // Getting the filename of a blob prepends a "C:\fakepath" to the filename. | 26 // Getting the filename of a blob prepends a "C:\fakepath" to the filename. |
27 // This is undesirable, strip it if it exists. | 27 // This is undesirable, strip it if it exists. |
(...skipping 200 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 |