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

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

Issue 2790463003: ntp_tiles: Cleanup enum names (Closed)
Patch Set: add back histogram enums Created 3 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
« 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 start = 260 uint64_t start =
261 1000 * (render_frame()->GetWebFrame()->performance().navigationStart()); 261 1000 * (render_frame()->GetWebFrame()->performance().navigationStart());
262 uint64_t now = 262 uint64_t now =
263 (base::TimeTicks::Now() - base::TimeTicks::UnixEpoch()).InMilliseconds(); 263 (base::TimeTicks::Now() - base::TimeTicks::UnixEpoch()).InMilliseconds();
264 DCHECK(now >= start); 264 DCHECK(now >= start);
265 base::TimeDelta delta = base::TimeDelta::FromMilliseconds(now - start); 265 base::TimeDelta delta = base::TimeDelta::FromMilliseconds(now - start);
266 instant_service_->LogEvent(page_seq_no_, event, delta); 266 instant_service_->LogEvent(page_seq_no_, event, delta);
267 } 267 }
268 268
269 void SearchBox::LogMostVisitedImpression(int position, 269 void SearchBox::LogMostVisitedImpression(int position,
270 ntp_tiles::NTPTileSource tile_source) { 270 ntp_tiles::TileSource tile_source) {
271 instant_service_->LogMostVisitedImpression(page_seq_no_, position, 271 instant_service_->LogMostVisitedImpression(page_seq_no_, position,
272 tile_source); 272 tile_source);
273 } 273 }
274 274
275 void SearchBox::LogMostVisitedNavigation(int position, 275 void SearchBox::LogMostVisitedNavigation(int position,
276 ntp_tiles::NTPTileSource tile_source) { 276 ntp_tiles::TileSource tile_source) {
277 instant_service_->LogMostVisitedNavigation(page_seq_no_, position, 277 instant_service_->LogMostVisitedNavigation(page_seq_no_, position,
278 tile_source); 278 tile_source);
279 } 279 }
280 280
281 void SearchBox::CheckIsUserSignedInToChromeAs(const base::string16& identity) { 281 void SearchBox::CheckIsUserSignedInToChromeAs(const base::string16& identity) {
282 instant_service_->ChromeIdentityCheck(page_seq_no_, identity); 282 instant_service_->ChromeIdentityCheck(page_seq_no_, identity);
283 } 283 }
284 284
285 void SearchBox::CheckIsUserSyncingHistory() { 285 void SearchBox::CheckIsUserSyncingHistory() {
286 instant_service_->HistorySyncCheck(page_seq_no_); 286 instant_service_->HistorySyncCheck(page_seq_no_);
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
465 embedded_search_request_params_ = EmbeddedSearchRequestParams(); 465 embedded_search_request_params_ = EmbeddedSearchRequestParams();
466 suggestion_ = InstantSuggestion(); 466 suggestion_ = InstantSuggestion();
467 is_focused_ = false; 467 is_focused_ = false;
468 is_key_capture_enabled_ = false; 468 is_key_capture_enabled_ = false;
469 theme_info_ = ThemeBackgroundInfo(); 469 theme_info_ = ThemeBackgroundInfo();
470 } 470 }
471 471
472 void SearchBox::OnDestruct() { 472 void SearchBox::OnDestruct() {
473 delete this; 473 delete this;
474 } 474 }
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