OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/service/cloud_print/cloud_print_helpers.h" | 5 #include "chrome/service/cloud_print/cloud_print_service_helpers.h" |
6 | 6 |
7 #include "base/strings/stringprintf.h" | 7 #include "base/strings/stringprintf.h" |
8 #include "chrome/common/cloud_print/cloud_print_constants.h" | 8 #include "chrome/common/cloud_print/cloud_print_constants.h" |
9 #include "chrome/common/cloud_print/cloud_print_helpers.h" | 9 #include "chrome/common/cloud_print/cloud_print_helpers.h" |
10 #include "chrome/service/cloud_print/cloud_print_token_store.h" | 10 #include "chrome/service/cloud_print/cloud_print_token_store.h" |
11 #include "chrome/service/service_process.h" | 11 #include "chrome/service/service_process.h" |
12 | 12 |
13 namespace { | 13 namespace { |
14 | 14 |
15 std::string StringFromJobStatus(cloud_print::PrintJobStatus status) { | 15 std::string StringFromJobStatus(cloud_print::PrintJobStatus status) { |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 if (!token_store || token_store->token().empty()) { | 91 if (!token_store || token_store->token().empty()) { |
92 // Using LOG here for critical errors. GCP connector may run in the headless | 92 // Using LOG here for critical errors. GCP connector may run in the headless |
93 // mode and error indication might be useful for user in that case. | 93 // mode and error indication might be useful for user in that case. |
94 LOG(ERROR) << "CP_PROXY: Missing OAuth token for request"; | 94 LOG(ERROR) << "CP_PROXY: Missing OAuth token for request"; |
95 return std::string(); | 95 return std::string(); |
96 } | 96 } |
97 return GetCloudPrintAuthHeader(token_store->token()); | 97 return GetCloudPrintAuthHeader(token_store->token()); |
98 } | 98 } |
99 | 99 |
100 } // namespace cloud_print | 100 } // namespace cloud_print |
OLD | NEW |