diff options
author | avi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-01 14:30:39 +0000 |
---|---|---|
committer | avi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-01 14:30:39 +0000 |
commit | 4c1865ad4cd7176d6bea8b3632872e8dd4e19c51 (patch) | |
tree | 749993bd283c2ca64f4460cefcb32a64760c079b /chrome/browser/ui/find_bar | |
parent | 68bec8591fedbe3db84cf38d1deae260412c1751 (diff) | |
download | chromium_src-4c1865ad4cd7176d6bea8b3632872e8dd4e19c51.zip chromium_src-4c1865ad4cd7176d6bea8b3632872e8dd4e19c51.tar.gz chromium_src-4c1865ad4cd7176d6bea8b3632872e8dd4e19c51.tar.bz2 |
Removal of Profile from content part 4.
BUG=76788
TEST=no change visible
Review URL: http://codereview.chromium.org/7531004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@94901 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui/find_bar')
-rw-r--r-- | chrome/browser/ui/find_bar/find_tab_helper.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/chrome/browser/ui/find_bar/find_tab_helper.cc b/chrome/browser/ui/find_bar/find_tab_helper.cc index f51d77e..a595e53 100644 --- a/chrome/browser/ui/find_bar/find_tab_helper.cc +++ b/chrome/browser/ui/find_bar/find_tab_helper.cc @@ -38,8 +38,10 @@ void FindTabHelper::StartFinding(string16 search_string, // If search_string is empty, it means FindNext was pressed with a keyboard // shortcut so unless we have something to search for we return early. if (search_string.empty() && find_text_.empty()) { + Profile* profile = + Profile::FromBrowserContext(tab_contents()->browser_context()); string16 last_search_prepopulate_text = - FindBarState::GetLastPrepopulateText(tab_contents()->profile()); + FindBarState::GetLastPrepopulateText(profile); // Try the last thing we searched for on this tab, then the last thing // searched for on any tab. @@ -73,7 +75,9 @@ void FindTabHelper::StartFinding(string16 search_string, find_op_aborted_ = false; // Keep track of what the last search was across the tabs. - FindBarState* find_bar_state = tab_contents()->profile()->GetFindBarState(); + Profile* profile = + Profile::FromBrowserContext(tab_contents()->browser_context()); + FindBarState* find_bar_state = profile->GetFindBarState(); find_bar_state->set_last_prepopulate_text(find_text_); WebFindOptions options; |