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/extensions/extension_system.h" | |
15 #include "chrome/browser/feedback/tracing_manager.h" | 14 #include "chrome/browser/feedback/tracing_manager.h" |
16 #include "extensions/browser/event_router.h" | 15 #include "extensions/browser/event_router.h" |
| 16 #include "extensions/browser/extension_system.h" |
17 #include "grit/generated_resources.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 namespace { | 22 namespace { |
23 | 23 |
24 // Getting the filename of a blob prepends a "C:\fakepath" to the filename. | 24 // Getting the filename of a blob prepends a "C:\fakepath" to the filename. |
25 // This is undesirable, strip it if it exists. | 25 // This is undesirable, strip it if it exists. |
26 std::string StripFakepath(const std::string& path) { | 26 std::string StripFakepath(const std::string& path) { |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
240 | 240 |
241 void FeedbackPrivateSendFeedbackFunction::OnCompleted( | 241 void FeedbackPrivateSendFeedbackFunction::OnCompleted( |
242 bool success) { | 242 bool success) { |
243 results_ = feedback_private::SendFeedback::Results::Create( | 243 results_ = feedback_private::SendFeedback::Results::Create( |
244 success ? feedback_private::STATUS_SUCCESS : | 244 success ? feedback_private::STATUS_SUCCESS : |
245 feedback_private::STATUS_DELAYED); | 245 feedback_private::STATUS_DELAYED); |
246 SendResponse(true); | 246 SendResponse(true); |
247 } | 247 } |
248 | 248 |
249 } // namespace extensions | 249 } // namespace extensions |
OLD | NEW |