summaryrefslogtreecommitdiffstats
path: root/chrome/browser/chrome_quota_permission_context.cc
diff options
context:
space:
mode:
authoravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-01 15:24:08 +0000
committeravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-01 15:24:08 +0000
commit2f93641aca552e88c4810924fe2135b626707b45 (patch)
tree26b29b0da55fb33174def9948f0bbdb859161edd /chrome/browser/chrome_quota_permission_context.cc
parent678e68ab1a5fa99f07634cce9ac22a6d700436df (diff)
downloadchromium_src-2f93641aca552e88c4810924fe2135b626707b45.zip
chromium_src-2f93641aca552e88c4810924fe2135b626707b45.tar.gz
chromium_src-2f93641aca552e88c4810924fe2135b626707b45.tar.bz2
Move infobar handling to a tab helper, part 1.
BUG=94741 TEST=no visible change Review URL: http://codereview.chromium.org/7810002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99187 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/chrome_quota_permission_context.cc')
-rw-r--r--chrome/browser/chrome_quota_permission_context.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/chrome_quota_permission_context.cc b/chrome/browser/chrome_quota_permission_context.cc
index 8f13bbb..a557b64 100644
--- a/chrome/browser/chrome_quota_permission_context.cc
+++ b/chrome/browser/chrome_quota_permission_context.cc
@@ -7,6 +7,7 @@
#include <string>
#include "base/utf_string_conversions.h"
+#include "chrome/browser/infobars/infobar_tab_helper.h"
#include "chrome/browser/prefs/pref_service.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/tab_contents/confirm_infobar_delegate.h"
@@ -143,7 +144,7 @@ void ChromeQuotaPermissionContext::RequestQuotaPermission(
TabContentsWrapper* wrapper =
TabContentsWrapper::GetCurrentWrapperForContents(tab_contents);
- wrapper->AddInfoBar(new RequestQuotaInfoBarDelegate(
+ wrapper->infobar_tab_helper()->AddInfoBar(new RequestQuotaInfoBarDelegate(
tab_contents, this,
origin_url, requested_quota,
wrapper->profile()->GetPrefs()->GetString(prefs::kAcceptLanguages),