summaryrefslogtreecommitdiffstats
path: root/chrome/browser/plugin_installer.cc
diff options
context:
space:
mode:
authorbrettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-14 16:42:25 +0000
committerbrettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-14 16:42:25 +0000
commit807bfceada33743cad3308af48c538d7d7515495 (patch)
tree19953eac8d00695cfbb8c00137d8eb192e0aedc7 /chrome/browser/plugin_installer.cc
parent7b7965f2391594e6a3944ffee8fcdaaf18683fc3 (diff)
downloadchromium_src-807bfceada33743cad3308af48c538d7d7515495.zip
chromium_src-807bfceada33743cad3308af48c538d7d7515495.tar.gz
chromium_src-807bfceada33743cad3308af48c538d7d7515495.tar.bz2
Move more view stuff out of WebContents. This moves context menus and info
bars. I removed the associated functions on TabContents, and have callers call directly through to the view when the care about mucking with the info bar (which is busted, IMO). Review URL: http://codereview.chromium.org/7245 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3346 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/plugin_installer.cc')
-rw-r--r--chrome/browser/plugin_installer.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/chrome/browser/plugin_installer.cc b/chrome/browser/plugin_installer.cc
index 9ccaad8..1d42d80 100644
--- a/chrome/browser/plugin_installer.cc
+++ b/chrome/browser/plugin_installer.cc
@@ -2,8 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/app/theme/theme_resources.h"
#include "chrome/browser/plugin_installer.h"
+
+#include "chrome/app/theme/theme_resources.h"
+#include "chrome/browser/web_contents_view.h"
#include "base/string_util.h"
#include "chrome/common/l10n_util.h"
#include "chrome/common/resource_bundle.h"
@@ -28,7 +30,9 @@ void PluginInstaller::OnMissingPluginStatus(int status) {
if (current_bar_)
return;
- InfoBarView* view = web_contents_->GetInfoBarView();
+ // TODO(brettw) have a more general way to add to the info bar rather
+ // than mucking with it directly.
+ InfoBarView* view = web_contents_->view()->GetInfoBarView();
current_bar_ = new PluginInstallerBar(this);
view->AddChildView(current_bar_);
break;