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

Unified Diff: chrome/browser/ui/libgtk2ui/print_dialog_gtk2.cc

Issue 2165083002: Linux: Refactor X11DesktopHandler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix tests Created 4 years, 4 months 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/ui/libgtk2ui/print_dialog_gtk2.cc
diff --git a/chrome/browser/ui/libgtk2ui/print_dialog_gtk2.cc b/chrome/browser/ui/libgtk2ui/print_dialog_gtk2.cc
index 59157a41793d9fad72ebdc88fee7a6c23ef05bda..219fe7ef8f774325b443e5f3720d9fff16fb9b3d 100644
--- a/chrome/browser/ui/libgtk2ui/print_dialog_gtk2.cc
+++ b/chrome/browser/ui/libgtk2ui/print_dialog_gtk2.cc
@@ -25,7 +25,6 @@
#include "printing/print_job_constants.h"
#include "printing/print_settings.h"
#include "ui/aura/window.h"
-#include "ui/views/widget/desktop_aura/x11_desktop_handler.h"
using content::BrowserThread;
using printing::PageRanges;
@@ -366,8 +365,7 @@ void PrintDialogGtk2::ShowDialog(
// We need to call gtk_window_present after making the widgets visible to make
// sure window gets correctly raised and gets focus.
- int time = views::X11DesktopHandler::get()->wm_user_time_ms();
danakj 2016/08/11 21:48:19 Using a time is better if we can. Not being famili
Tom (Use chromium acct) 2016/08/15 18:42:45 :( ../../chrome/browser/ui/libgtk2ui/print_dialog
Tom (Use chromium acct) 2016/08/19 00:26:31 Turns out the necessary dependency was added in th
- gtk_window_present_with_time(GTK_WINDOW(dialog_), time);
+ gtk_window_present(GTK_WINDOW(dialog_));
}
void PrintDialogGtk2::PrintDocument(const printing::MetafilePlayer& metafile,

Powered by Google App Engine
This is Rietveld 408576698