diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-28 23:51:33 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-28 23:51:33 +0000 |
commit | 2a6bc3e61c13a82f1a61c552d5a940c14b0a9db1 (patch) | |
tree | 51e2f19bdc45bd87c9a378ee4d7d113431f6b9f5 /chrome/browser/background/background_contents_service.cc | |
parent | 50dbc0376d825c59d08d3c0a4f3ea34fad30e960 (diff) | |
download | chromium_src-2a6bc3e61c13a82f1a61c552d5a940c14b0a9db1.zip chromium_src-2a6bc3e61c13a82f1a61c552d5a940c14b0a9db1.tar.gz chromium_src-2a6bc3e61c13a82f1a61c552d5a940c14b0a9db1.tar.bz2 |
Convert all of the WebContentsDelegate to use WebContents instead of TabContents, and update all the dependent code.
BUG=98716
TBR=joi
Review URL: http://codereview.chromium.org/9008047
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115932 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/background/background_contents_service.cc')
-rw-r--r-- | chrome/browser/background/background_contents_service.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/chrome/browser/background/background_contents_service.cc b/chrome/browser/background/background_contents_service.cc index 47343b9..95333aa 100644 --- a/chrome/browser/background/background_contents_service.cc +++ b/chrome/browser/background/background_contents_service.cc @@ -33,6 +33,8 @@ #include "grit/generated_resources.h" #include "ui/base/l10n/l10n_util.h" +using content::WebContents; + namespace { const char kNotificationPrefix[] = "app.background.crashed."; @@ -566,8 +568,8 @@ const string16& BackgroundContentsService::GetParentApplicationId( return EmptyString16(); } -void BackgroundContentsService::AddTabContents( - TabContents* new_contents, +void BackgroundContentsService::AddWebContents( + WebContents* new_contents, WindowOpenDisposition disposition, const gfx::Rect& initial_pos, bool user_gesture) { @@ -575,5 +577,5 @@ void BackgroundContentsService::AddTabContents( Profile::FromBrowserContext(new_contents->GetBrowserContext())); if (!browser) return; - browser->AddTabContents(new_contents, disposition, initial_pos, user_gesture); + browser->AddWebContents(new_contents, disposition, initial_pos, user_gesture); } |