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

Unified Diff: chrome/browser/tab_contents/render_view_context_menu.cc

Issue 11434074: browser: Move FindBrowserWithWebContents() into chrome namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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/tab_contents/render_view_context_menu.cc
diff --git a/chrome/browser/tab_contents/render_view_context_menu.cc b/chrome/browser/tab_contents/render_view_context_menu.cc
index c5a19cc987468c6a65dcb30cbf5197584eb74f33..2dac7381de720d28b4a836a93bb87fcf78d307fa 100644
--- a/chrome/browser/tab_contents/render_view_context_menu.cc
+++ b/chrome/browser/tab_contents/render_view_context_menu.cc
@@ -1028,7 +1028,7 @@ bool RenderViewContextMenu::IsCommandIdEnabled(int id) const {
if (source_web_contents_->GetController().GetActiveEntry() == NULL)
return false;
// Disabled if no browser is associated (e.g. desktop notifications).
- if (browser::FindBrowserWithWebContents(source_web_contents_) == NULL)
+ if (chrome::FindBrowserWithWebContents(source_web_contents_) == NULL)
return false;
return true;
@@ -1218,7 +1218,7 @@ bool RenderViewContextMenu::IsCommandIdEnabled(int id) const {
return true;
case IDC_CONTENT_CONTEXT_VIEWFRAMEINFO:
// Disabled if no browser is associated (e.g. desktop notifications).
- if (browser::FindBrowserWithWebContents(source_web_contents_) == NULL)
+ if (chrome::FindBrowserWithWebContents(source_web_contents_) == NULL)
return false;
return true;
@@ -1353,7 +1353,7 @@ void RenderViewContextMenu::ExecuteCommand(int id, int event_flags) {
switch (id) {
case IDC_CONTENT_CONTEXT_OPENLINKNEWTAB: {
Browser* browser =
- browser::FindBrowserWithWebContents(source_web_contents_);
+ chrome::FindBrowserWithWebContents(source_web_contents_);
OpenURL(
params_.link_url,
params_.frame_url.is_empty() ? params_.page_url : params_.frame_url,
@@ -1585,7 +1585,7 @@ void RenderViewContextMenu::ExecuteCommand(int id, int event_flags) {
NavigationController* controller = &source_web_contents_->GetController();
NavigationEntry* nav_entry = controller->GetActiveEntry();
Browser* browser =
- browser::FindBrowserWithWebContents(source_web_contents_);
+ chrome::FindBrowserWithWebContents(source_web_contents_);
chrome::ShowPageInfo(browser, source_web_contents_, nav_entry->GetURL(),
nav_entry->GetSSL(), true);
break;
@@ -1625,7 +1625,7 @@ void RenderViewContextMenu::ExecuteCommand(int id, int event_flags) {
break;
case IDC_CONTENT_CONTEXT_VIEWFRAMEINFO: {
- Browser* browser = browser::FindBrowserWithWebContents(
+ Browser* browser = chrome::FindBrowserWithWebContents(
source_web_contents_);
chrome::ShowPageInfo(browser, source_web_contents_, params_.frame_url,
params_.security_info, false);
« no previous file with comments | « chrome/browser/sessions/session_restore.cc ('k') | chrome/browser/tab_contents/web_drag_bookmark_handler_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698