Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(107)

Side by Side Diff: chrome/browser/printing/printer_manager_dialog_linux.cc

Issue 8477004: Have content/ create and destroy its own threads. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: With this patchset, Chrome runs and exits normally on Linux. Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/message_loop.h"
9 #include "base/nix/xdg_util.h" 10 #include "base/nix/xdg_util.h"
10 #include "base/process_util.h" 11 #include "base/process_util.h"
11 #include "content/common/process_watcher.h" 12 #include "content/common/process_watcher.h"
12 #include "content/public/browser/browser_thread.h" 13 #include "content/public/browser/browser_thread.h"
13 14
14 using base::Environment; 15 using base::Environment;
15 using content::BrowserThread; 16 using content::BrowserThread;
16 17
17 namespace { 18 namespace {
18 19
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 } // anonymous namespace 61 } // anonymous namespace
61 62
62 namespace printing { 63 namespace printing {
63 64
64 void PrinterManagerDialog::ShowPrinterManagerDialog() { 65 void PrinterManagerDialog::ShowPrinterManagerDialog() {
65 BrowserThread::PostTask(BrowserThread::FILE, FROM_HERE, 66 BrowserThread::PostTask(BrowserThread::FILE, FROM_HERE,
66 base::Bind(&DetectAndOpenPrinterConfigDialog)); 67 base::Bind(&DetectAndOpenPrinterConfigDialog));
67 } 68 }
68 69
69 } // namespace printing 70 } // namespace printing
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698