summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extension_function_dispatcher.cc
diff options
context:
space:
mode:
authorsergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-27 19:29:56 +0000
committersergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-27 19:29:56 +0000
commit74d32ec47f9098ae52997b159cf05342020d72a9 (patch)
tree1a2b178feceea57e0e15250cc7c5fc44114fe436 /chrome/browser/extensions/extension_function_dispatcher.cc
parent331bf1416770ae1a2b3649369b596f6f5511bd72 (diff)
downloadchromium_src-74d32ec47f9098ae52997b159cf05342020d72a9.zip
chromium_src-74d32ec47f9098ae52997b159cf05342020d72a9.tar.gz
chromium_src-74d32ec47f9098ae52997b159cf05342020d72a9.tar.bz2
Revert 94332 - Removal of Profile from content part 2.
BUG=76788 TEST=no change visible Review URL: http://codereview.chromium.org/7480028 TBR=avi@chromium.org Review URL: http://codereview.chromium.org/7492051 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@94335 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_function_dispatcher.cc')
-rw-r--r--chrome/browser/extensions/extension_function_dispatcher.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/chrome/browser/extensions/extension_function_dispatcher.cc b/chrome/browser/extensions/extension_function_dispatcher.cc
index f90868a..15529b2 100644
--- a/chrome/browser/extensions/extension_function_dispatcher.cc
+++ b/chrome/browser/extensions/extension_function_dispatcher.cc
@@ -498,8 +498,7 @@ Browser* ExtensionFunctionDispatcher::GetCurrentBrowser(
// profile. Note that the profile may already be incognito, in which case
// we will search the incognito version only, regardless of the value of
// |include_incognito|.
- Profile* profile = Profile::FromBrowserContext(
- render_view_host->process()->browser_context());
+ Profile* profile = render_view_host->process()->profile();
browser = BrowserList::FindTabbedBrowser(profile, include_incognito);
// NOTE(rafaelw): This can return NULL in some circumstances. In particular,