Revert of Add button to add new FSP services to Files app. (patchset #8 id:140001...
[chromium-blink-merge.git] / chrome / browser / ui / search / instant_tab.cc
blobcc57987f48d4f798e68dd9d0634410d88c2799a2
1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "chrome/browser/ui/search/instant_tab.h"
7 #include "chrome/browser/profiles/profile.h"
8 #include "chrome/browser/ui/webui/ntp/ntp_user_data_logger.h"
9 #include "content/public/browser/web_contents.h"
11 InstantTab::InstantTab(InstantPage::Delegate* delegate,
12 Profile* profile)
13 : InstantPage(delegate, "", profile, profile->IsOffTheRecord()) {
16 InstantTab::~InstantTab() {
19 void InstantTab::Init(content::WebContents* contents) {
20 SetContents(contents);
23 // static
24 void InstantTab::EmitNtpStatistics(content::WebContents* contents) {
25 NTPUserDataLogger::GetOrCreateFromWebContents(contents)->EmitNtpStatistics();
28 bool InstantTab::ShouldProcessAboutToNavigateMainFrame() {
29 return true;