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/browser/printing/printer_manager_dialog.h" | 5 #include "chrome/browser/printing/printer_manager_dialog.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/environment.h" | 8 #include "base/environment.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
11 #include "base/nix/xdg_util.h" | 11 #include "base/nix/xdg_util.h" |
12 #include "base/process_util.h" | 12 #include "base/process/kill.h" |
| 13 #include "base/process/launch.h" |
13 #include "content/public/browser/browser_thread.h" | 14 #include "content/public/browser/browser_thread.h" |
14 | 15 |
15 using base::Environment; | 16 using base::Environment; |
16 using content::BrowserThread; | 17 using content::BrowserThread; |
17 | 18 |
18 namespace { | 19 namespace { |
19 | 20 |
20 // KDE printer config command ("system-config-printer-kde") causes the | 21 // KDE printer config command ("system-config-printer-kde") causes the |
21 // OptionWidget to crash (https://bugs.kde.org/show_bug.cgi?id=271957). | 22 // OptionWidget to crash (https://bugs.kde.org/show_bug.cgi?id=271957). |
22 // Therefore, use GNOME printer config command for KDE. | 23 // Therefore, use GNOME printer config command for KDE. |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 } // anonymous namespace | 60 } // anonymous namespace |
60 | 61 |
61 namespace printing { | 62 namespace printing { |
62 | 63 |
63 void PrinterManagerDialog::ShowPrinterManagerDialog() { | 64 void PrinterManagerDialog::ShowPrinterManagerDialog() { |
64 BrowserThread::PostTask(BrowserThread::FILE, FROM_HERE, | 65 BrowserThread::PostTask(BrowserThread::FILE, FROM_HERE, |
65 base::Bind(&DetectAndOpenPrinterConfigDialog)); | 66 base::Bind(&DetectAndOpenPrinterConfigDialog)); |
66 } | 67 } |
67 | 68 |
68 } // namespace printing | 69 } // namespace printing |
OLD | NEW |