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

Unified Diff: chrome/browser/automation/automation_provider.cc

Issue 10536058: TabContentsWrapper -> TabContents, part 6. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: GetOwningTabContentsForWebContents Created 8 years, 6 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/automation/automation_provider.cc
diff --git a/chrome/browser/automation/automation_provider.cc b/chrome/browser/automation/automation_provider.cc
index 0cf1fed5cfe05396f6609bf85f33aa5bcfdb9c0b..8553aa7141857f04667bbac088b2789282f54a27 100644
--- a/chrome/browser/automation/automation_provider.cc
+++ b/chrome/browser/automation/automation_provider.cc
@@ -55,7 +55,7 @@
#include "chrome/browser/ui/find_bar/find_tab_helper.h"
#include "chrome/browser/ui/login/login_prompt.h"
#include "chrome/browser/ui/omnibox/location_bar.h"
-#include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
+#include "chrome/browser/ui/tab_contents/tab_contents.h"
#include "chrome/common/automation_constants.h"
#include "chrome/common/automation_messages.h"
#include "chrome/common/chrome_constants.h"
@@ -519,10 +519,10 @@ void AutomationProvider::SendFindRequest(
if (!with_json) {
find_in_page_observer_.reset(observer);
}
- TabContentsWrapper* wrapper =
- TabContentsWrapper::GetCurrentWrapperForContents(web_contents);
- if (wrapper)
- wrapper->find_tab_helper()->set_current_find_request_id(request_id);
+ TabContents* tab_contents =
+ TabContents::GetOwningTabContentsForWebContents(web_contents);
+ if (tab_contents)
+ tab_contents->find_tab_helper()->set_current_find_request_id(request_id);
WebFindOptions options;
options.forward = forward;

Powered by Google App Engine
This is Rietveld 408576698