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

Side by Side Diff: chrome/browser/profiles/profile_metrics.cc

Issue 305103006: Update the string for gaia incognito header (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: histogram xml updated Created 6 years, 6 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 | « no previous file | chrome/browser/signin/signin_header_helper.h » ('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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/profiles/profile_metrics.h" 5 #include "chrome/browser/profiles/profile_metrics.h"
6 6
7 #include "base/files/file_path.h" 7 #include "base/files/file_path.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/metrics/histogram.h" 9 #include "base/metrics/histogram.h"
10 #include "chrome/browser/browser_process.h" 10 #include "chrome/browser/browser_process.h"
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 // to refactor. 304 // to refactor.
305 switch (gaia_service) { 305 switch (gaia_service) {
306 case signin::GAIA_SERVICE_TYPE_NONE: 306 case signin::GAIA_SERVICE_TYPE_NONE:
307 UMA_HISTOGRAM_ENUMERATION("Profile.DesktopMenu.NonGAIA", metric, 307 UMA_HISTOGRAM_ENUMERATION("Profile.DesktopMenu.NonGAIA", metric,
308 NUM_PROFILE_DESKTOP_MENU_METRICS); 308 NUM_PROFILE_DESKTOP_MENU_METRICS);
309 break; 309 break;
310 case signin::GAIA_SERVICE_TYPE_SIGNOUT: 310 case signin::GAIA_SERVICE_TYPE_SIGNOUT:
311 UMA_HISTOGRAM_ENUMERATION("Profile.DesktopMenu.GAIASignout", metric, 311 UMA_HISTOGRAM_ENUMERATION("Profile.DesktopMenu.GAIASignout", metric,
312 NUM_PROFILE_DESKTOP_MENU_METRICS); 312 NUM_PROFILE_DESKTOP_MENU_METRICS);
313 break; 313 break;
314 case signin::GAIA_SERVICE_TYPE_SIGNOUTOPTIONS_INCOGNITO: 314 case signin::GAIA_SERVICE_TYPE_INCOGNITO:
315 UMA_HISTOGRAM_ENUMERATION("Profile.DesktopMenu.GAIASignoutIncognito", 315 UMA_HISTOGRAM_ENUMERATION("Profile.DesktopMenu.GAIAIncognito",
316 metric, NUM_PROFILE_DESKTOP_MENU_METRICS); 316 metric, NUM_PROFILE_DESKTOP_MENU_METRICS);
317 break; 317 break;
318 case signin::GAIA_SERVICE_TYPE_ADDSESSION: 318 case signin::GAIA_SERVICE_TYPE_ADDSESSION:
319 UMA_HISTOGRAM_ENUMERATION("Profile.DesktopMenu.GAIAAddSession", metric, 319 UMA_HISTOGRAM_ENUMERATION("Profile.DesktopMenu.GAIAAddSession", metric,
320 NUM_PROFILE_DESKTOP_MENU_METRICS); 320 NUM_PROFILE_DESKTOP_MENU_METRICS);
321 break; 321 break;
322 case signin::GAIA_SERVICE_TYPE_REAUTH: 322 case signin::GAIA_SERVICE_TYPE_REAUTH:
323 UMA_HISTOGRAM_ENUMERATION("Profile.DesktopMenu.GAIAReAuth", metric, 323 UMA_HISTOGRAM_ENUMERATION("Profile.DesktopMenu.GAIAReAuth", metric,
324 NUM_PROFILE_DESKTOP_MENU_METRICS); 324 NUM_PROFILE_DESKTOP_MENU_METRICS);
325 break; 325 break;
(...skipping 20 matching lines...) Expand all
346 UMA_HISTOGRAM_ENUMERATION("Profile.SyncSignIn", 346 UMA_HISTOGRAM_ENUMERATION("Profile.SyncSignIn",
347 GetProfileType(profile_path), 347 GetProfileType(profile_path),
348 NUM_PROFILE_TYPE_METRICS); 348 NUM_PROFILE_TYPE_METRICS);
349 } 349 }
350 350
351 void ProfileMetrics::LogProfileUpdate(const base::FilePath& profile_path) { 351 void ProfileMetrics::LogProfileUpdate(const base::FilePath& profile_path) {
352 UMA_HISTOGRAM_ENUMERATION("Profile.Update", 352 UMA_HISTOGRAM_ENUMERATION("Profile.Update",
353 GetProfileType(profile_path), 353 GetProfileType(profile_path),
354 NUM_PROFILE_TYPE_METRICS); 354 NUM_PROFILE_TYPE_METRICS);
355 } 355 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/signin/signin_header_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698