diff options
author | maruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-28 20:23:58 +0000 |
---|---|---|
committer | maruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-28 20:23:58 +0000 |
commit | dbc77768039c629d0165b6f0ec8ce26e24e1da4d (patch) | |
tree | 947c519d1518c57a230961b73a0d03795531ab57 /chrome/browser/printing | |
parent | b5a58cba835df1fecff5383d3a81093e8bfa2573 (diff) | |
download | chromium_src-dbc77768039c629d0165b6f0ec8ce26e24e1da4d.zip chromium_src-dbc77768039c629d0165b6f0ec8ce26e24e1da4d.tar.gz chromium_src-dbc77768039c629d0165b6f0ec8ce26e24e1da4d.tar.bz2 |
Disconnect the "browser controlled printing" and always delegate the control flow to the renderer.
Followup changes will remove more parts that are not needed anymore.
Review URL: http://codereview.chromium.org/18860
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8821 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/printing')
-rw-r--r-- | chrome/browser/printing/print_view_manager.cc | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/chrome/browser/printing/print_view_manager.cc b/chrome/browser/printing/print_view_manager.cc index 6813a15..436742a 100644 --- a/chrome/browser/printing/print_view_manager.cc +++ b/chrome/browser/printing/print_view_manager.cc @@ -254,14 +254,8 @@ void PrintViewManager::OnNotifyPrintJobInitEvent( owner_.render_view_host()->IsRenderViewLive() && (!old_print_params.Equals(print_params_) || !event_details.document()->page_count())) { - // This will generate a DidGetPrintedPagesCount() callback. - if (!owner_.render_view_host()->GetPrintedPagesCount(print_params_)) { - NOTREACHED(); - if (inside_inner_message_loop_) { - MessageLoop::current()->Quit(); - return; - } - } + // TODO(maruel): Will never happen, this code is about to be deleted. + NOTREACHED(); } // Continue even if owner_.render_view_host() is dead because we may already @@ -477,10 +471,8 @@ void PrintViewManager::PrintNowInternal() { if (!print_job_->document() || !print_job_->document()->IsComplete()) { - ViewMsg_PrintPages_Params params; - params.params = print_params_; - params.pages = PageRange::GetPages(print_job_->settings().ranges); - owner_.render_view_host()->PrintPages(params); + // TODO(maruel): Will never happen. This code is about to be deleted. + NOTREACHED(); } } |