| 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;
|
|
|