diff options
author | benwells@chromium.org <benwells@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-10-28 21:19:23 +0000 |
---|---|---|
committer | benwells@chromium.org <benwells@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-10-28 21:19:23 +0000 |
commit | 21a40087a57e13cc9b81cb7e8064f74587dfa8a1 (patch) | |
tree | e88d44c64fcaa47a5b45533a4d6c993de770757c /chrome/browser/extensions/api/desktop_capture/desktop_capture_api.cc | |
parent | 0f75118d4799a7c5421150826eaccd1dfd253f8e (diff) | |
download | chromium_src-21a40087a57e13cc9b81cb7e8064f74587dfa8a1.zip chromium_src-21a40087a57e13cc9b81cb7e8064f74587dfa8a1.tar.gz chromium_src-21a40087a57e13cc9b81cb7e8064f74587dfa8a1.tar.bz2 |
Remove Profile dependency from ExtensionFunction
This instead creates new variants of ExtensionFunction for Chrome APIs,
which need Profile, and uses them for any API that needs to access
Profiles.
TBR=sky@chromium.org
BUG=297942
Review URL: https://codereview.chromium.org/35893010
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231406 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/api/desktop_capture/desktop_capture_api.cc')
-rw-r--r-- | chrome/browser/extensions/api/desktop_capture/desktop_capture_api.cc | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/chrome/browser/extensions/api/desktop_capture/desktop_capture_api.cc b/chrome/browser/extensions/api/desktop_capture/desktop_capture_api.cc index 4c00e25..0fe1a83 100644 --- a/chrome/browser/extensions/api/desktop_capture/desktop_capture_api.cc +++ b/chrome/browser/extensions/api/desktop_capture/desktop_capture_api.cc @@ -96,9 +96,13 @@ bool DesktopCaptureChooseDesktopMediaFunction::RunImpl() { } content::WebContents* web_contents = NULL; - if (!ExtensionTabUtil::GetTabById( - *(params->target_tab->id), profile(), false, - NULL, NULL, &web_contents, NULL)) { + if (!ExtensionTabUtil::GetTabById(*(params->target_tab->id), + GetProfile(), + false, + NULL, + NULL, + &web_contents, + NULL)) { error_ = kInvalidTabIdError; return false; } |