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

Side by Side Diff: chrome/browser/ui/webui/ntp/ntp_user_data_logger.cc

Issue 2122903002: Move search-related files from chrome/common to chrome/common/search (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: move search-related files Created 4 years, 5 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/webui/ntp/ntp_user_data_logger.h" 5 #include "chrome/browser/ui/webui/ntp/ntp_user_data_logger.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/metrics/histogram.h" 9 #include "base/metrics/histogram.h"
10 #include "base/strings/stringprintf.h" 10 #include "base/strings/stringprintf.h"
11 #include "base/strings/utf_string_conversions.h" 11 #include "base/strings/utf_string_conversions.h"
12 #include "chrome/browser/after_startup_task_utils.h" 12 #include "chrome/browser/after_startup_task_utils.h"
13 #include "chrome/browser/profiles/profile.h" 13 #include "chrome/browser/profiles/profile.h"
14 #include "chrome/browser/search/most_visited_iframe_source.h" 14 #include "chrome/browser/search/most_visited_iframe_source.h"
15 #include "chrome/browser/search/search.h" 15 #include "chrome/browser/search/search.h"
16 #include "chrome/browser/sync/profile_sync_service_factory.h" 16 #include "chrome/browser/sync/profile_sync_service_factory.h"
17 #include "chrome/common/search_urls.h" 17 #include "chrome/common/search/search_urls.h"
18 #include "chrome/common/url_constants.h" 18 #include "chrome/common/url_constants.h"
19 #include "components/browser_sync/browser/profile_sync_service.h" 19 #include "components/browser_sync/browser/profile_sync_service.h"
20 #include "components/sync_sessions/sessions_sync_manager.h" 20 #include "components/sync_sessions/sessions_sync_manager.h"
21 #include "components/sync_sessions/sync_sessions_metrics.h" 21 #include "components/sync_sessions/sync_sessions_metrics.h"
22 #include "content/public/browser/navigation_details.h" 22 #include "content/public/browser/navigation_details.h"
23 #include "content/public/browser/navigation_entry.h" 23 #include "content/public/browser/navigation_entry.h"
24 #include "content/public/browser/user_metrics.h" 24 #include "content/public/browser/user_metrics.h"
25 #include "content/public/browser/web_contents.h" 25 #include "content/public/browser/web_contents.h"
26 26
27 // Macro to log UMA statistics related to the 8 tiles shown on the NTP. 27 // Macro to log UMA statistics related to the 8 tiles shown on the NTP.
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 browser_sync::SessionsSyncManager* sessions = 306 browser_sync::SessionsSyncManager* sessions =
307 static_cast<browser_sync::SessionsSyncManager*>( 307 static_cast<browser_sync::SessionsSyncManager*>(
308 sync->GetSessionsSyncableService()); 308 sync->GetSessionsSyncableService());
309 if (sessions) { 309 if (sessions) {
310 sync_sessions::SyncSessionsMetrics::RecordYoungestForeignTabAgeOnNTP( 310 sync_sessions::SyncSessionsMetrics::RecordYoungestForeignTabAgeOnNTP(
311 sessions); 311 sessions);
312 } 312 }
313 } 313 }
314 } 314 }
315 } 315 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/ntp/ntp_user_data_logger.h ('k') | chrome/browser/ui/webui/ntp/ntp_user_data_logger_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698