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/ui/webui/print_preview/print_preview_handler.h" | 5 #include "chrome/browser/ui/webui/print_preview/print_preview_handler.h" |
6 | 6 |
7 #include <ctype.h> | 7 #include <ctype.h> |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 16 matching lines...) Expand all Loading... |
27 #include "chrome/browser/platform_util.h" | 27 #include "chrome/browser/platform_util.h" |
28 #include "chrome/browser/prefs/pref_service.h" | 28 #include "chrome/browser/prefs/pref_service.h" |
29 #include "chrome/browser/printing/cloud_print/cloud_print_url.h" | 29 #include "chrome/browser/printing/cloud_print/cloud_print_url.h" |
30 #include "chrome/browser/printing/print_dialog_cloud.h" | 30 #include "chrome/browser/printing/print_dialog_cloud.h" |
31 #include "chrome/browser/printing/print_job_manager.h" | 31 #include "chrome/browser/printing/print_job_manager.h" |
32 #include "chrome/browser/printing/print_preview_tab_controller.h" | 32 #include "chrome/browser/printing/print_preview_tab_controller.h" |
33 #include "chrome/browser/printing/print_system_task_proxy.h" | 33 #include "chrome/browser/printing/print_system_task_proxy.h" |
34 #include "chrome/browser/printing/print_view_manager.h" | 34 #include "chrome/browser/printing/print_view_manager.h" |
35 #include "chrome/browser/printing/printer_manager_dialog.h" | 35 #include "chrome/browser/printing/printer_manager_dialog.h" |
36 #include "chrome/browser/profiles/profile.h" | 36 #include "chrome/browser/profiles/profile.h" |
| 37 #include "chrome/browser/ui/browser.h" |
37 #include "chrome/browser/ui/browser_list.h" | 38 #include "chrome/browser/ui/browser_list.h" |
38 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" | 39 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" |
39 #include "chrome/browser/ui/webui/print_preview/print_preview_ui.h" | 40 #include "chrome/browser/ui/webui/print_preview/print_preview_ui.h" |
40 #include "chrome/browser/ui/webui/print_preview/sticky_settings.h" | 41 #include "chrome/browser/ui/webui/print_preview/sticky_settings.h" |
41 #include "chrome/common/chrome_paths.h" | 42 #include "chrome/common/chrome_paths.h" |
42 #include "chrome/common/pref_names.h" | 43 #include "chrome/common/pref_names.h" |
43 #include "chrome/common/print_messages.h" | 44 #include "chrome/common/print_messages.h" |
44 #include "content/public/browser/browser_thread.h" | 45 #include "content/public/browser/browser_thread.h" |
45 #include "content/public/browser/navigation_controller.h" | 46 #include "content/public/browser/navigation_controller.h" |
46 #include "content/public/browser/navigation_entry.h" | 47 #include "content/public/browser/navigation_entry.h" |
(...skipping 823 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
870 return; | 871 return; |
871 | 872 |
872 // We no longer require the initiator tab details. Remove those details | 873 // We no longer require the initiator tab details. Remove those details |
873 // associated with the preview tab to allow the initiator tab to create | 874 // associated with the preview tab to allow the initiator tab to create |
874 // another preview tab. | 875 // another preview tab. |
875 printing::PrintPreviewTabController* tab_controller = | 876 printing::PrintPreviewTabController* tab_controller = |
876 printing::PrintPreviewTabController::GetInstance(); | 877 printing::PrintPreviewTabController::GetInstance(); |
877 if (tab_controller) | 878 if (tab_controller) |
878 tab_controller->EraseInitiatorTabInfo(preview_tab_wrapper()); | 879 tab_controller->EraseInitiatorTabInfo(preview_tab_wrapper()); |
879 } | 880 } |
OLD | NEW |