OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "remoting/test/app_remoting_report_issue_request.h" | 5 #include "remoting/test/app_remoting_report_issue_request.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/callback_helpers.h" | 8 #include "base/callback_helpers.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/thread_task_runner_handle.h" | 10 #include "base/threading/thread_task_runner_handle.h" |
11 #include "net/http/http_response_headers.h" | 11 #include "net/http/http_response_headers.h" |
12 #include "net/http/http_status_code.h" | 12 #include "net/http/http_status_code.h" |
13 #include "net/url_request/url_fetcher.h" | 13 #include "net/url_request/url_fetcher.h" |
14 #include "remoting/base/url_request_context_getter.h" | 14 #include "remoting/base/url_request_context_getter.h" |
15 | 15 |
16 namespace { | 16 namespace { |
17 const char kRequestTestOrigin[] = | 17 const char kRequestTestOrigin[] = |
18 "Origin: chrome-extension://ljacajndfccfgnfohlgkdphmbnpkjflk"; | 18 "Origin: chrome-extension://ljacajndfccfgnfohlgkdphmbnpkjflk"; |
19 } | 19 } |
20 | 20 |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 if (response_code != net::HTTP_OK && response_code != net::HTTP_NO_CONTENT) { | 73 if (response_code != net::HTTP_OK && response_code != net::HTTP_NO_CONTENT) { |
74 LOG(ERROR) << "ReportIssue request failed with error code: " | 74 LOG(ERROR) << "ReportIssue request failed with error code: " |
75 << response_code; | 75 << response_code; |
76 } | 76 } |
77 | 77 |
78 base::ResetAndReturn(&request_complete_callback_).Run(); | 78 base::ResetAndReturn(&request_complete_callback_).Run(); |
79 } | 79 } |
80 | 80 |
81 } // namespace test | 81 } // namespace test |
82 } // namespace remoting | 82 } // namespace remoting |
OLD | NEW |