| 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 <memory> | 7 #include <memory> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/lazy_instance.h" | 10 #include "base/lazy_instance.h" |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 #include "ui/base/l10n/l10n_util.h" | 32 #include "ui/base/l10n/l10n_util.h" |
| 33 #include "ui/base/webui/web_ui_util.h" | 33 #include "ui/base/webui/web_ui_util.h" |
| 34 #include "url/url_util.h" | 34 #include "url/url_util.h" |
| 35 | 35 |
| 36 #if defined(OS_CHROMEOS) | 36 #if defined(OS_CHROMEOS) |
| 37 #include "chrome/browser/chromeos/arc/arc_util.h" | 37 #include "chrome/browser/chromeos/arc/arc_util.h" |
| 38 #endif // defined(OS_CHROMEOS) | 38 #endif // defined(OS_CHROMEOS) |
| 39 | 39 |
| 40 #if defined(OS_WIN) | 40 #if defined(OS_WIN) |
| 41 #include "base/feature_list.h" | 41 #include "base/feature_list.h" |
| 42 #include "chrome/browser/safe_browsing/srt_fetcher_win.h" | 42 #include "chrome/browser/safe_browsing/chrome_cleaner/srt_fetcher_win.h" |
| 43 #endif | 43 #endif |
| 44 | 44 |
| 45 using extensions::api::feedback_private::SystemInformation; | 45 using extensions::api::feedback_private::SystemInformation; |
| 46 using feedback::FeedbackData; | 46 using feedback::FeedbackData; |
| 47 | 47 |
| 48 namespace { | 48 namespace { |
| 49 | 49 |
| 50 // Getting the filename of a blob prepends a "C:\fakepath" to the filename. | 50 // Getting the filename of a blob prepends a "C:\fakepath" to the filename. |
| 51 // This is undesirable, strip it if it exists. | 51 // This is undesirable, strip it if it exists. |
| 52 std::string StripFakepath(const std::string& path) { | 52 std::string StripFakepath(const std::string& path) { |
| (...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 355 case feedback_private::SRT_PROMPT_RESULT_CLOSED: | 355 case feedback_private::SRT_PROMPT_RESULT_CLOSED: |
| 356 base::RecordAction(base::UserMetricsAction("Feedback.SrtPromptClosed")); | 356 base::RecordAction(base::UserMetricsAction("Feedback.SrtPromptClosed")); |
| 357 break; | 357 break; |
| 358 default: | 358 default: |
| 359 return RespondNow(Error("Invalid arugment.")); | 359 return RespondNow(Error("Invalid arugment.")); |
| 360 } | 360 } |
| 361 return RespondNow(NoArguments()); | 361 return RespondNow(NoArguments()); |
| 362 } | 362 } |
| 363 | 363 |
| 364 } // namespace extensions | 364 } // namespace extensions |
| OLD | NEW |