Get rid of the remaining implementation in TabContentsView and make all the methods be pure. This removes the dependency on RenderViewHostDelegateHelper, which is Chrome specific.
BUG=87702
Review URL: http://codereview.chromium.org/7285050
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92217 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/content/browser/tab_contents/tab_contents.cc b/content/browser/tab_contents/tab_contents.cc
index 98f03f93..25057f4ed 100644
--- a/content/browser/tab_contents/tab_contents.cc
+++ b/content/browser/tab_contents/tab_contents.cc
@@ -1448,15 +1448,6 @@
delegate()->UpdateTargetURL(this, url);
}
-void TabContents::UpdateInspectorSetting(const std::string& key,
- const std::string& value) {
- RenderViewHostDelegateHelper::UpdateInspectorSetting(profile(), key, value);
-}
-
-void TabContents::ClearInspectorSettings() {
- RenderViewHostDelegateHelper::ClearInspectorSettings(profile());
-}
-
void TabContents::Close(RenderViewHost* rvh) {
// The UI may be in an event-tracking loop, such as between the
// mouse-down and mouse-up in text selection or a button click.
@@ -1637,10 +1628,9 @@
}
WebPreferences TabContents::GetWebkitPrefs() {
- Profile* profile = render_view_host()->process()->profile();
- bool is_web_ui = false;
WebPreferences web_prefs =
- RenderViewHostDelegateHelper::GetWebkitPrefs(profile, is_web_ui);
+ content::GetContentClient()->browser()->GetWebkitPrefs(
+ render_view_host()->process()->profile(), false);
// Force accelerated compositing and 2d canvas off for chrome:, about: and
// chrome-devtools: pages.