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

Side by Side Diff: chrome/browser/ui/libgtk2ui/print_dialog_gtk2.cc

Issue 1160073004: chrome/browser/ui: Remove use of MessageLoopProxy and deprecated MessageLoop APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Check for task runner instead of current message loop. Created 5 years, 6 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/ui/libgtk2ui/print_dialog_gtk2.h" 5 #include "chrome/browser/ui/libgtk2ui/print_dialog_gtk2.h"
6 6
7 #include <gtk/gtkunixprint.h> 7 #include <gtk/gtkunixprint.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <cmath> 10 #include <cmath>
11 #include <string> 11 #include <string>
12 #include <vector> 12 #include <vector>
13 13
14 #include "base/bind.h" 14 #include "base/bind.h"
15 #include "base/files/file_util.h" 15 #include "base/files/file_util.h"
16 #include "base/files/file_util_proxy.h" 16 #include "base/files/file_util_proxy.h"
17 #include "base/lazy_instance.h" 17 #include "base/lazy_instance.h"
18 #include "base/logging.h" 18 #include "base/logging.h"
19 #include "base/message_loop/message_loop_proxy.h"
20 #include "base/strings/utf_string_conversions.h" 19 #include "base/strings/utf_string_conversions.h"
20 #include "base/thread_task_runner_handle.h"
msw 2015/06/10 00:12:57 Take a look at this file; did you mean to change t
Sami 2015/06/10 12:35:33 Yes, I'm not renaming GetMessageLoopProxyForThread
21 #include "base/values.h" 21 #include "base/values.h"
22 #include "chrome/browser/ui/libgtk2ui/gtk2_util.h" 22 #include "chrome/browser/ui/libgtk2ui/gtk2_util.h"
23 #include "chrome/browser/ui/libgtk2ui/printing_gtk2_util.h" 23 #include "chrome/browser/ui/libgtk2ui/printing_gtk2_util.h"
24 #include "printing/metafile.h" 24 #include "printing/metafile.h"
25 #include "printing/print_job_constants.h" 25 #include "printing/print_job_constants.h"
26 #include "printing/print_settings.h" 26 #include "printing/print_settings.h"
27 #include "ui/aura/window.h" 27 #include "ui/aura/window.h"
28 #include "ui/views/widget/desktop_aura/x11_desktop_handler.h" 28 #include "ui/views/widget/desktop_aura/x11_desktop_handler.h"
29 29
30 using content::BrowserThread; 30 using content::BrowserThread;
(...skipping 508 matching lines...) Expand 10 before | Expand all | Expand 10 after
539 context_->InitWithSettings(*settings); 539 context_->InitWithSettings(*settings);
540 } 540 }
541 541
542 void PrintDialogGtk2::OnWindowDestroying(aura::Window* window) { 542 void PrintDialogGtk2::OnWindowDestroying(aura::Window* window) {
543 DCHECK_EQ(libgtk2ui::GetAuraTransientParent(dialog_), window); 543 DCHECK_EQ(libgtk2ui::GetAuraTransientParent(dialog_), window);
544 544
545 libgtk2ui::ClearAuraTransientParent(dialog_); 545 libgtk2ui::ClearAuraTransientParent(dialog_);
546 window->RemoveObserver(this); 546 window->RemoveObserver(this);
547 Release(); 547 Release();
548 } 548 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698