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

Unified Diff: chrome/browser/ui/search/instant_ntp.cc

Issue 137993020: (Try 2) InstantExtended: remove dead code related to the non-cacheable NTP. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Disable InstantPolicyTests Created 6 years, 11 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/ui/search/instant_ntp.h ('k') | chrome/browser/ui/search/instant_ntp_prerenderer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/search/instant_ntp.cc
diff --git a/chrome/browser/ui/search/instant_ntp.cc b/chrome/browser/ui/search/instant_ntp.cc
deleted file mode 100644
index 303fc335d043cb75a561e4b17f0bacd3c90ef205..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/search/instant_ntp.cc
+++ /dev/null
@@ -1,61 +0,0 @@
-// Copyright 2013 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/ui/search/instant_ntp.h"
-
-#include "base/metrics/histogram.h"
-#include "chrome/browser/profiles/profile.h"
-#include "chrome/browser/ui/search/instant_ntp_prerenderer.h"
-#include "chrome/browser/ui/search/search_tab_helper.h"
-#include "chrome/browser/ui/webui/ntp/ntp_user_data_logger.h"
-#include "content/public/browser/web_contents.h"
-#include "url/gurl.h"
-
-InstantNTP::InstantNTP(InstantNTPPrerenderer* ntp_prerenderer,
- const std::string& instant_url,
- Profile* profile)
- : InstantPage(ntp_prerenderer, instant_url, profile,
- profile->IsOffTheRecord()),
- loader_(this),
- ntp_prerenderer_(ntp_prerenderer) {
-}
-
-InstantNTP::~InstantNTP() {
- if (contents())
- ReleaseContents().reset();
-}
-
-void InstantNTP::InitContents(const base::Closure& on_stale_callback) {
- DCHECK(!contents());
- GURL instantNTP_url(instant_url());
- loader_.Init(instantNTP_url, profile(), on_stale_callback);
- SetContents(loader_.contents());
- content::WebContents* content = contents();
- SearchTabHelper::FromWebContents(content)->InitForPreloadedNTP();
-
- loader_.Load();
-}
-
-scoped_ptr<content::WebContents> InstantNTP::ReleaseContents() {
- SetContents(NULL);
- return loader_.ReleaseContents();
-}
-
-void InstantNTP::LoadCompletedMainFrame() {
- ntp_prerenderer_->LoadCompletedMainFrame();
-}
-
-void InstantNTP::RenderProcessGone(base::TerminationStatus /* status */) {
- ntp_prerenderer_->RenderProcessGone();
-}
-
-void InstantNTP::OnSwappedContents() {
- SetContents(loader_.contents());
-}
-
-content::WebContents* InstantNTP::OpenURLFromTab(
- content::WebContents* source,
- const content::OpenURLParams& params) {
- return NULL;
-}
« no previous file with comments | « chrome/browser/ui/search/instant_ntp.h ('k') | chrome/browser/ui/search/instant_ntp_prerenderer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698