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 "printing/backend/cups_helper.h" | 5 #include "printing/backend/cups_helper.h" |
6 | 6 |
| 7 #include <cups/ppd.h> |
| 8 |
7 #include "base/file_util.h" | 9 #include "base/file_util.h" |
8 #include "base/logging.h" | 10 #include "base/logging.h" |
9 #include "base/string_number_conversions.h" | 11 #include "base/string_number_conversions.h" |
10 #include "base/string_split.h" | 12 #include "base/string_split.h" |
11 #include "base/string_util.h" | 13 #include "base/string_util.h" |
12 #include "base/values.h" | 14 #include "base/values.h" |
13 #include "googleurl/src/gurl.h" | 15 #include "googleurl/src/gurl.h" |
14 #include "printing/backend/print_backend.h" | 16 #include "printing/backend/print_backend.h" |
15 #include "printing/backend/print_backend_consts.h" | 17 #include "printing/backend/print_backend_consts.h" |
16 | 18 |
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
384 caps.color_default = is_color; | 386 caps.color_default = is_color; |
385 | 387 |
386 ppdClose(ppd); | 388 ppdClose(ppd); |
387 file_util::Delete(ppd_file_path, false); | 389 file_util::Delete(ppd_file_path, false); |
388 | 390 |
389 *printer_info = caps; | 391 *printer_info = caps; |
390 return true; | 392 return true; |
391 } | 393 } |
392 | 394 |
393 } // namespace printing | 395 } // namespace printing |
OLD | NEW |