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

Unified Diff: chrome/browser/automation/testing_automation_provider.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/automation/testing_automation_provider.cc
diff --git a/chrome/browser/automation/testing_automation_provider.cc b/chrome/browser/automation/testing_automation_provider.cc
index 5e3f044a82e3f711ef4c57afe6f8032cd8297e28..2a048d27955d75ca14dc50ac6238a01f9a2c647e 100644
--- a/chrome/browser/automation/testing_automation_provider.cc
+++ b/chrome/browser/automation/testing_automation_provider.cc
@@ -515,7 +515,7 @@ void TestingAutomationProvider::CloseTab(int tab_handle,
IPC::Message* reply_message) {
if (tab_tracker_->ContainsHandle(tab_handle)) {
NavigationController* controller = tab_tracker_->GetResource(tab_handle);
- Browser* browser = browser::FindBrowserWithWebContents(
+ Browser* browser = chrome::FindBrowserWithWebContents(
controller->GetWebContents());
DCHECK(browser);
new TabClosedNotificationObserver(this, wait_until_closed, reply_message,
@@ -1034,7 +1034,7 @@ void TestingAutomationProvider::GetTabIndex(int handle, int* tabstrip_index) {
if (tab_tracker_->ContainsHandle(handle)) {
NavigationController* tab = tab_tracker_->GetResource(handle);
- Browser* browser = browser::FindBrowserWithWebContents(
+ Browser* browser = chrome::FindBrowserWithWebContents(
tab->GetWebContents());
*tabstrip_index = browser->tab_strip_model()->GetIndexOfWebContents(
tab->GetWebContents());
« no previous file with comments | « chrome/browser/automation/automation_provider.cc ('k') | chrome/browser/captive_portal/captive_portal_tab_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698