X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fchrome%2Fbrowser%2Fprinting%2Fprint_preview_dialog_controller.cc;h=aac04bc723ecd0887c534e4c3a3ea4a019e3e818;hb=3545e9f2671f595d2a2f3ee75ca0393b01e35ef6;hp=c8e50d2f052dcb62a7a220be40a8b2a3830365a6;hpb=7d210d4c7e9ba36e635eabc5b5780495f8a63292;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/chrome/browser/printing/print_preview_dialog_controller.cc b/src/chrome/browser/printing/print_preview_dialog_controller.cc index c8e50d2..aac04bc 100644 --- a/src/chrome/browser/printing/print_preview_dialog_controller.cc +++ b/src/chrome/browser/printing/print_preview_dialog_controller.cc @@ -337,13 +337,13 @@ void PrintPreviewDialogController::OnNavEntryCommitted( if (contents == preview_dialog) { // Preview dialog navigated. if (details) { - content::PageTransition transition_type = + ui::PageTransition transition_type = details->entry->GetTransitionType(); content::NavigationType nav_type = details->type; // New |preview_dialog| is created. Don't update/erase map entry. if (waiting_for_new_preview_page_ && - transition_type == content::PAGE_TRANSITION_AUTO_TOPLEVEL && + transition_type == ui::PAGE_TRANSITION_AUTO_TOPLEVEL && nav_type == content::NAVIGATION_TYPE_NEW_PAGE) { waiting_for_new_preview_page_ = false; SaveInitiatorTitle(preview_dialog); @@ -352,7 +352,7 @@ void PrintPreviewDialogController::OnNavEntryCommitted( // Cloud print sign-in causes a reload. if (!waiting_for_new_preview_page_ && - transition_type == content::PAGE_TRANSITION_RELOAD && + transition_type == ui::PAGE_TRANSITION_RELOAD && nav_type == content::NAVIGATION_TYPE_EXISTING_PAGE && IsPrintPreviewURL(details->previous_url)) { return;