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

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

Issue 2345843003: [Sync] Merge //components/browser_sync into one directory. (Closed)
Patch Set: Address comment + rebase. Created 4 years, 3 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 #include <string> 8 #include <string>
9 9
10 #include "base/metrics/histogram_macros.h" 10 #include "base/metrics/histogram_macros.h"
11 #include "base/strings/stringprintf.h" 11 #include "base/strings/stringprintf.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/search.h" 14 #include "chrome/browser/search/search.h"
15 #include "chrome/browser/sync/profile_sync_service_factory.h" 15 #include "chrome/browser/sync/profile_sync_service_factory.h"
16 #include "chrome/common/search/search_urls.h" 16 #include "chrome/common/search/search_urls.h"
17 #include "chrome/common/url_constants.h" 17 #include "chrome/common/url_constants.h"
18 #include "components/browser_sync/browser/profile_sync_service.h" 18 #include "components/browser_sync/profile_sync_service.h"
19 #include "components/sync_sessions/sessions_sync_manager.h" 19 #include "components/sync_sessions/sessions_sync_manager.h"
20 #include "components/sync_sessions/sync_sessions_metrics.h" 20 #include "components/sync_sessions/sync_sessions_metrics.h"
21 #include "content/public/browser/navigation_details.h" 21 #include "content/public/browser/navigation_details.h"
22 #include "content/public/browser/navigation_entry.h" 22 #include "content/public/browser/navigation_entry.h"
23 #include "content/public/browser/user_metrics.h" 23 #include "content/public/browser/user_metrics.h"
24 #include "content/public/browser/web_contents.h" 24 #include "content/public/browser/web_contents.h"
25 25
26 namespace { 26 namespace {
27 27
28 // Name of the histogram keeping track of suggestion impressions. 28 // Name of the histogram keeping track of suggestion impressions.
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 243
244 has_server_side_suggestions_ = false; 244 has_server_side_suggestions_ = false;
245 has_client_side_suggestions_ = false; 245 has_client_side_suggestions_ = false;
246 UMA_HISTOGRAM_CUSTOM_COUNTS( 246 UMA_HISTOGRAM_CUSTOM_COUNTS(
247 "NewTabPage.NumberOfTiles", number_of_tiles_, 1, kNumMostVisited, 247 "NewTabPage.NumberOfTiles", number_of_tiles_, 1, kNumMostVisited,
248 kNumMostVisited + 1); 248 kNumMostVisited + 1);
249 number_of_tiles_ = 0; 249 number_of_tiles_ = 0;
250 has_emitted_ = true; 250 has_emitted_ = true;
251 during_startup_ = false; 251 during_startup_ = false;
252 } 252 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/ntp/ntp_resource_cache.cc ('k') | chrome/browser/ui/webui/options/browser_options_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698