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

Side by Side Diff: chrome/browser/ui/search/instant_tab.cc

Issue 1053663003: Cleanup: Remove unused variables in chrome/ found by Scythe. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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 unified diff | Download patch
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/search/instant_tab.h" 5 #include "chrome/browser/ui/search/instant_tab.h"
6 6
7 #include "chrome/browser/profiles/profile.h" 7 #include "chrome/browser/profiles/profile.h"
8 #include "chrome/browser/ui/webui/ntp/ntp_user_data_logger.h" 8 #include "chrome/browser/ui/webui/ntp/ntp_user_data_logger.h"
9 #include "content/public/browser/web_contents.h" 9 #include "content/public/browser/web_contents.h"
10 10
11 InstantTab::InstantTab(InstantPage::Delegate* delegate, 11 InstantTab::InstantTab(InstantPage::Delegate* delegate,
12 Profile* profile) 12 Profile* profile)
13 : InstantPage(delegate, "", profile, profile->IsOffTheRecord()) { 13 : InstantPage(delegate, "", profile) {
14 } 14 }
15 15
16 InstantTab::~InstantTab() { 16 InstantTab::~InstantTab() {
17 } 17 }
18 18
19 void InstantTab::Init(content::WebContents* contents) { 19 void InstantTab::Init(content::WebContents* contents) {
20 SetContents(contents); 20 SetContents(contents);
21 } 21 }
22 22
23 // static 23 // static
24 void InstantTab::EmitNtpStatistics(content::WebContents* contents) { 24 void InstantTab::EmitNtpStatistics(content::WebContents* contents) {
25 NTPUserDataLogger::GetOrCreateFromWebContents(contents)->EmitNtpStatistics(); 25 NTPUserDataLogger::GetOrCreateFromWebContents(contents)->EmitNtpStatistics();
26 } 26 }
27 27
28 bool InstantTab::ShouldProcessAboutToNavigateMainFrame() { 28 bool InstantTab::ShouldProcessAboutToNavigateMainFrame() {
29 return true; 29 return true;
30 } 30 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/search/instant_page_unittest.cc ('k') | chrome/browser/ui/sync/inline_login_dialog.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698