summaryrefslogtreecommitdiffstats
path: root/chrome/browser/notifications/balloon_host.cc
diff options
context:
space:
mode:
authortfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-15 00:05:55 +0000
committertfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-15 00:05:55 +0000
commitc09163aee7f50d7bd7801343278c8bf68c9fe828 (patch)
tree0b759630920e71bdbe6fa8c88d008934cc66eb63 /chrome/browser/notifications/balloon_host.cc
parent58640fa257d09432b723e9891a3581ddedbee99d (diff)
downloadchromium_src-c09163aee7f50d7bd7801343278c8bf68c9fe828.zip
chromium_src-c09163aee7f50d7bd7801343278c8bf68c9fe828.tar.gz
chromium_src-c09163aee7f50d7bd7801343278c8bf68c9fe828.tar.bz2
WebUI: Get rid of more references to dom_ui and DOM_UI.
They were found with: $ git gs dom_ui_ $ git gs ::DOM_UI BUG=59945 TEST=trybots Review URL: http://codereview.chromium.org/6520019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@74884 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/notifications/balloon_host.cc')
-rw-r--r--chrome/browser/notifications/balloon_host.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/chrome/browser/notifications/balloon_host.cc b/chrome/browser/notifications/balloon_host.cc
index 228935fb..6cf4ba1 100644
--- a/chrome/browser/notifications/balloon_host.cc
+++ b/chrome/browser/notifications/balloon_host.cc
@@ -27,7 +27,7 @@ BalloonHost::BalloonHost(Balloon* balloon)
balloon_(balloon),
initialized_(false),
should_notify_on_disconnect_(false),
- enable_dom_ui_(false) {
+ enable_web_ui_(false) {
DCHECK(balloon_);
// If the notification is for an extension URL, make sure to use the extension
@@ -70,7 +70,7 @@ const string16& BalloonHost::GetSource() const {
WebPreferences BalloonHost::GetWebkitPrefs() {
WebPreferences web_prefs =
RenderViewHostDelegateHelper::GetWebkitPrefs(GetProfile(),
- enable_dom_ui_);
+ enable_web_ui_);
web_prefs.allow_scripts_to_close_windows = true;
return web_prefs;
}
@@ -201,8 +201,8 @@ void BalloonHost::Init() {
if (extension_function_dispatcher_.get()) {
rvh->AllowBindings(BindingsPolicy::EXTENSION);
rvh->set_is_extension_process(true);
- } else if (enable_dom_ui_) {
- rvh->AllowBindings(BindingsPolicy::DOM_UI);
+ } else if (enable_web_ui_) {
+ rvh->AllowBindings(BindingsPolicy::WEB_UI);
}
// Do platform-specific initialization.
@@ -224,7 +224,7 @@ void BalloonHost::Init() {
void BalloonHost::EnableWebUI() {
DCHECK(render_view_host_ == NULL) <<
"EnableWebUI has to be called before a renderer is created.";
- enable_dom_ui_ = true;
+ enable_web_ui_ = true;
}
void BalloonHost::UpdateInspectorSetting(const std::string& key,