Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(155)

Unified Diff: chrome/browser/tab_contents/chrome_interstitial_page.cc

Issue 9323071: Use InterstitialPage through a delegate interface instead of deriving from it. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix cros Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/tab_contents/chrome_interstitial_page.h ('k') | chrome/browser/ui/browser_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/tab_contents/chrome_interstitial_page.cc
===================================================================
--- chrome/browser/tab_contents/chrome_interstitial_page.cc (revision 120733)
+++ chrome/browser/tab_contents/chrome_interstitial_page.cc (working copy)
@@ -1,33 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/browser/tab_contents/chrome_interstitial_page.h"
-
-#include "chrome/browser/profiles/profile.h"
-#include "chrome/browser/renderer_preferences_util.h"
-#include "chrome/common/render_messages.h"
-#include "content/browser/renderer_host/render_view_host.h"
-#include "content/public/browser/web_contents.h"
-
-using content::WebContents;
-
-ChromeInterstitialPage::ChromeInterstitialPage(WebContents* tab,
- bool new_navigation,
- const GURL& url)
- : InterstitialPage(tab, new_navigation, url) {
- Profile* profile = Profile::FromBrowserContext(tab->GetBrowserContext());
- content::RendererPreferences prefs;
- renderer_preferences_util::UpdateFromSystemSettings(&prefs, profile);
- set_renderer_preferences(prefs);
-}
-
-ChromeInterstitialPage::~ChromeInterstitialPage() {
-}
-
-void ChromeInterstitialPage::Show() {
- InterstitialPage::Show();
-
- render_view_host()->Send(
- new ChromeViewMsg_SetAsInterstitial(render_view_host()->routing_id()));
-}
« no previous file with comments | « chrome/browser/tab_contents/chrome_interstitial_page.h ('k') | chrome/browser/ui/browser_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698