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

Unified Diff: chrome/browser/ui/webui/print_preview_ui.cc

Issue 7647010: Print preview page selection should not require a rerendering of draft pages. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Fixed comment Created 9 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/webui/print_preview_ui.cc
diff --git a/chrome/browser/ui/webui/print_preview_ui.cc b/chrome/browser/ui/webui/print_preview_ui.cc
index 208d207a94a28aaa204d6c21e663bd39edae94b6..d4f53e5f8177058704d4dbe725c3ca176c88db38 100644
--- a/chrome/browser/ui/webui/print_preview_ui.cc
+++ b/chrome/browser/ui/webui/print_preview_ui.cc
@@ -104,6 +104,11 @@ void PrintPreviewUI::ClearAllPreviewData() {
print_preview_data_service()->RemoveEntry(preview_ui_addr_str_);
}
+int PrintPreviewUI::GetAvailableDraftPageCount() {
+ return print_preview_data_service()->GetAvailableDraftPageCount(
+ preview_ui_addr_str_);
+}
+
void PrintPreviewUI::SetInitiatorTabURLAndTitle(
const std::string& initiator_url,
const string16& job_title) {

Powered by Google App Engine
This is Rietveld 408576698