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

Unified Diff: chrome/browser/printing/print_job_worker.cc

Issue 5856001: Cleanup: USE_X11 + OS_MACOSX = OS_POSIX. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/printing/print_job_worker.cc
===================================================================
--- chrome/browser/printing/print_job_worker.cc (revision 69187)
+++ chrome/browser/printing/print_job_worker.cc (working copy)
@@ -84,7 +84,7 @@
printing_context_->set_use_overlays(use_overlays);
if (ask_user_for_settings) {
-#if defined(OS_MACOSX) || defined(USE_X11)
+#if defined(OS_POSIX)
BrowserThread::PostTask(
BrowserThread::UI, FROM_HERE,
NewRunnableMethod(this, &PrintJobWorker::GetSettingsWithUI,
@@ -96,7 +96,7 @@
document_page_count,
has_selection,
NewCallback(this, &PrintJobWorker::GetSettingsDone));
-#endif // defined(OS_MACOSX) || defined(USE_X11)
+#endif // defined(OS_POSIX)
} else {
PrintingContext::Result result = printing_context_->UseDefaultSettings();
GetSettingsDone(result);
@@ -118,7 +118,7 @@
result));
}
-#if defined(OS_MACOSX) || defined(USE_X11)
+#if defined(OS_POSIX)
void PrintJobWorker::GetSettingsWithUI(gfx::NativeView parent_view,
int document_page_count,
bool has_selection) {
@@ -135,7 +135,7 @@
message_loop()->PostTask(FROM_HERE, NewRunnableMethod(
this, &PrintJobWorker::GetSettingsDone, result));
}
-#endif // defined(OS_MACOSX) || defined(USE_X11)
+#endif // defined(OS_POSIX)
void PrintJobWorker::StartPrinting(PrintedDocument* new_document) {
DCHECK_EQ(message_loop(), MessageLoop::current());

Powered by Google App Engine
This is Rietveld 408576698