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

Side by Side Diff: chrome/renderer/searchbox/searchbox.cc

Issue 2544883006: Cleanup: Replace NTPLoggingTileSource by ntp_tiles::NTPTileSource (Closed)
Patch Set: tests Created 4 years 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
« no previous file with comments | « chrome/renderer/searchbox/searchbox.h ('k') | chrome/renderer/searchbox/searchbox_extension.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/renderer/searchbox/searchbox.h" 5 #include "chrome/renderer/searchbox/searchbox.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 uint64_t now = (base::TimeTicks::Now() - base::TimeTicks::UnixEpoch()) 260 uint64_t now = (base::TimeTicks::Now() - base::TimeTicks::UnixEpoch())
261 .InMilliseconds(); 261 .InMilliseconds();
262 DCHECK(now >= start); 262 DCHECK(now >= start);
263 delta = base::TimeDelta::FromMilliseconds(now - start); 263 delta = base::TimeDelta::FromMilliseconds(now - start);
264 } 264 }
265 render_view()->Send(new ChromeViewHostMsg_LogEvent( 265 render_view()->Send(new ChromeViewHostMsg_LogEvent(
266 render_view()->GetRoutingID(), page_seq_no_, event, delta)); 266 render_view()->GetRoutingID(), page_seq_no_, event, delta));
267 } 267 }
268 268
269 void SearchBox::LogMostVisitedImpression(int position, 269 void SearchBox::LogMostVisitedImpression(int position,
270 NTPLoggingTileSource tile_source) { 270 ntp_tiles::NTPTileSource tile_source) {
271 render_view()->Send(new ChromeViewHostMsg_LogMostVisitedImpression( 271 render_view()->Send(new ChromeViewHostMsg_LogMostVisitedImpression(
272 render_view()->GetRoutingID(), page_seq_no_, position, tile_source)); 272 render_view()->GetRoutingID(), page_seq_no_, position, tile_source));
273 } 273 }
274 274
275 void SearchBox::LogMostVisitedNavigation(int position, 275 void SearchBox::LogMostVisitedNavigation(int position,
276 NTPLoggingTileSource tile_source) { 276 ntp_tiles::NTPTileSource tile_source) {
277 render_view()->Send(new ChromeViewHostMsg_LogMostVisitedNavigation( 277 render_view()->Send(new ChromeViewHostMsg_LogMostVisitedNavigation(
278 render_view()->GetRoutingID(), page_seq_no_, position, tile_source)); 278 render_view()->GetRoutingID(), page_seq_no_, position, tile_source));
279 } 279 }
280 280
281 void SearchBox::CheckIsUserSignedInToChromeAs(const base::string16& identity) { 281 void SearchBox::CheckIsUserSignedInToChromeAs(const base::string16& identity) {
282 render_view()->Send(new ChromeViewHostMsg_ChromeIdentityCheck( 282 render_view()->Send(new ChromeViewHostMsg_ChromeIdentityCheck(
283 render_view()->GetRoutingID(), page_seq_no_, identity)); 283 render_view()->GetRoutingID(), page_seq_no_, identity));
284 } 284 }
285 285
286 void SearchBox::CheckIsUserSyncingHistory() { 286 void SearchBox::CheckIsUserSyncingHistory() {
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
515 embedded_search_request_params_ = EmbeddedSearchRequestParams(); 515 embedded_search_request_params_ = EmbeddedSearchRequestParams();
516 suggestion_ = InstantSuggestion(); 516 suggestion_ = InstantSuggestion();
517 is_focused_ = false; 517 is_focused_ = false;
518 is_key_capture_enabled_ = false; 518 is_key_capture_enabled_ = false;
519 theme_info_ = ThemeBackgroundInfo(); 519 theme_info_ = ThemeBackgroundInfo();
520 } 520 }
521 521
522 void SearchBox::OnDestruct() { 522 void SearchBox::OnDestruct() {
523 delete this; 523 delete this;
524 } 524 }
OLDNEW
« no previous file with comments | « chrome/renderer/searchbox/searchbox.h ('k') | chrome/renderer/searchbox/searchbox_extension.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698