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

Side by Side Diff: chrome/browser/ui/webui/print_preview_handler.cc

Issue 8983010: Convert WebContents to return a content::NavigationController instead of the implementation. Upda... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix mac Created 8 years, 11 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 | 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/ui/webui/print_preview_handler.h" 5 #include "chrome/browser/ui/webui/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 24 matching lines...) Expand all
35 #include "chrome/browser/profiles/profile.h" 35 #include "chrome/browser/profiles/profile.h"
36 #include "chrome/browser/ui/browser_list.h" 36 #include "chrome/browser/ui/browser_list.h"
37 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" 37 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
38 #include "chrome/browser/ui/webui/cloud_print_signin_dialog.h" 38 #include "chrome/browser/ui/webui/cloud_print_signin_dialog.h"
39 #include "chrome/browser/ui/webui/print_preview_ui.h" 39 #include "chrome/browser/ui/webui/print_preview_ui.h"
40 #include "chrome/common/chrome_paths.h" 40 #include "chrome/common/chrome_paths.h"
41 #include "chrome/common/pref_names.h" 41 #include "chrome/common/pref_names.h"
42 #include "chrome/common/print_messages.h" 42 #include "chrome/common/print_messages.h"
43 #include "content/browser/renderer_host/render_view_host.h" 43 #include "content/browser/renderer_host/render_view_host.h"
44 #include "content/browser/renderer_host/render_view_host_delegate.h" 44 #include "content/browser/renderer_host/render_view_host_delegate.h"
45 #include "content/browser/tab_contents/navigation_controller.h"
46 #include "content/browser/webui/web_ui.h" 45 #include "content/browser/webui/web_ui.h"
47 #include "content/public/browser/browser_thread.h" 46 #include "content/public/browser/browser_thread.h"
47 #include "content/public/browser/navigation_controller.h"
48 #include "content/public/browser/navigation_entry.h" 48 #include "content/public/browser/navigation_entry.h"
49 #include "content/public/browser/web_contents.h" 49 #include "content/public/browser/web_contents.h"
50 #include "printing/backend/print_backend.h" 50 #include "printing/backend/print_backend.h"
51 #include "printing/metafile.h" 51 #include "printing/metafile.h"
52 #include "printing/metafile_impl.h" 52 #include "printing/metafile_impl.h"
53 #include "printing/page_range.h" 53 #include "printing/page_range.h"
54 #include "printing/page_size_margins.h" 54 #include "printing/page_size_margins.h"
55 #include "printing/print_settings.h" 55 #include "printing/print_settings.h"
56 #include "unicode/ulocdata.h" 56 #include "unicode/ulocdata.h"
57 57
(...skipping 800 matching lines...) Expand 10 before | Expand all | Expand 10 after
858 return; 858 return;
859 859
860 // We no longer require the initiator tab details. Remove those details 860 // We no longer require the initiator tab details. Remove those details
861 // associated with the preview tab to allow the initiator tab to create 861 // associated with the preview tab to allow the initiator tab to create
862 // another preview tab. 862 // another preview tab.
863 printing::PrintPreviewTabController* tab_controller = 863 printing::PrintPreviewTabController* tab_controller =
864 printing::PrintPreviewTabController::GetInstance(); 864 printing::PrintPreviewTabController::GetInstance();
865 if (tab_controller) 865 if (tab_controller)
866 tab_controller->EraseInitiatorTabInfo(preview_tab_wrapper()); 866 tab_controller->EraseInitiatorTabInfo(preview_tab_wrapper());
867 } 867 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698