| 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 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 236 | 236 |
| 237 void FeedbackPrivateSendFeedbackFunction::OnCompleted( | 237 void FeedbackPrivateSendFeedbackFunction::OnCompleted( |
| 238 bool success) { | 238 bool success) { |
| 239 results_ = feedback_private::SendFeedback::Results::Create( | 239 results_ = feedback_private::SendFeedback::Results::Create( |
| 240 success ? feedback_private::STATUS_SUCCESS : | 240 success ? feedback_private::STATUS_SUCCESS : |
| 241 feedback_private::STATUS_DELAYED); | 241 feedback_private::STATUS_DELAYED); |
| 242 SendResponse(true); | 242 SendResponse(true); |
| 243 } | 243 } |
| 244 | 244 |
| 245 } // namespace extensions | 245 } // namespace extensions |
| OLD | NEW |