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

Unified Diff: chrome/browser/ui/pdf/pdf_unsupported_feature.cc

Issue 562603002: Move PageTransition from //content/public/common to //ui/base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 3 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/pdf/pdf_unsupported_feature.cc
diff --git a/chrome/browser/ui/pdf/pdf_unsupported_feature.cc b/chrome/browser/ui/pdf/pdf_unsupported_feature.cc
index d1a351dfa85cb9e18d3caefbe6019275b7e4ff81..5705cea0dc58b52656d44b4ecf38a6107882f91b 100644
--- a/chrome/browser/ui/pdf/pdf_unsupported_feature.cc
+++ b/chrome/browser/ui/pdf/pdf_unsupported_feature.cc
@@ -87,11 +87,11 @@ PDFEnableAdobeReaderPromptClient::~PDFEnableAdobeReaderPromptClient() {
bool PDFEnableAdobeReaderPromptClient::ShouldExpire(
const content::LoadCommittedDetails& details) const {
- content::PageTransition transition =
- content::PageTransitionStripQualifier(details.entry->GetTransitionType());
+ ui::PageTransition transition =
+ ui::PageTransitionStripQualifier(details.entry->GetTransitionType());
// We don't want to expire on a reload, because that is how we open the PDF in
// Reader.
- return !details.is_in_page && transition != content::PAGE_TRANSITION_RELOAD;
+ return !details.is_in_page && transition != ui::PAGE_TRANSITION_RELOAD;
}
void PDFEnableAdobeReaderPromptClient::Accept() {
@@ -123,7 +123,7 @@ base::string16 PDFEnableAdobeReaderPromptClient::GetMessageText() const {
void OpenReaderUpdateURL(WebContents* web_contents) {
OpenURLParams params(
GURL(kAdobeReaderUpdateUrl), Referrer(), NEW_FOREGROUND_TAB,
- content::PAGE_TRANSITION_LINK, false);
+ ui::PAGE_TRANSITION_LINK, false);
web_contents->OpenURL(params);
}
« no previous file with comments | « chrome/browser/ui/passwords/manage_passwords_ui_controller.cc ('k') | chrome/browser/ui/search/instant_page.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698