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

Unified Diff: chrome/browser/ui/panels/panel_host.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/panels/panel_host.cc
diff --git a/chrome/browser/ui/panels/panel_host.cc b/chrome/browser/ui/panels/panel_host.cc
index ed6b62967307cd581e0d792e1599c8b843755b23..28d5ae2603c655c8806c20d55a7907541f77840f 100644
--- a/chrome/browser/ui/panels/panel_host.cc
+++ b/chrome/browser/ui/panels/panel_host.cc
@@ -72,7 +72,7 @@ void PanelHost::Init(const GURL& url) {
web_contents_.get());
web_contents_->GetController().LoadURL(
- url, content::Referrer(), content::PAGE_TRANSITION_LINK, std::string());
+ url, content::Referrer(), ui::PAGE_TRANSITION_LINK, std::string());
}
void PanelHost::DestroyWebContents() {
@@ -104,7 +104,7 @@ content::WebContents* PanelHost::OpenURLFromTab(
return NULL;
// Only allow clicks on links.
- if (params.transition != content::PAGE_TRANSITION_LINK)
+ if (params.transition != ui::PAGE_TRANSITION_LINK)
return NULL;
// Force all links to open in a new tab.
@@ -142,7 +142,7 @@ void PanelHost::AddNewContents(content::WebContents* source,
bool user_gesture,
bool* was_blocked) {
chrome::NavigateParams navigate_params(profile_, new_contents->GetURL(),
- content::PAGE_TRANSITION_LINK);
+ ui::PAGE_TRANSITION_LINK);
navigate_params.target_contents = new_contents;
// Force all links to open in a new tab, even if they were trying to open a
« no previous file with comments | « chrome/browser/ui/omnibox/omnibox_edit_model.cc ('k') | chrome/browser/ui/passwords/manage_passwords_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698