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

Side by Side Diff: chrome/browser/chromeos/first_run/first_run.cc

Issue 131023003: Added UMA metrics for ChromeOS first-run UI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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 | Annotate | Revision Log
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 "base/command_line.h" 5 #include "base/command_line.h"
6 #include "base/metrics/histogram.h"
6 #include "chrome/browser/chrome_notification_types.h" 7 #include "chrome/browser/chrome_notification_types.h"
7 #include "chrome/browser/chromeos/first_run/first_run_controller.h" 8 #include "chrome/browser/chromeos/first_run/first_run_controller.h"
8 #include "chrome/browser/chromeos/login/user_manager.h" 9 #include "chrome/browser/chromeos/login/user_manager.h"
9 #include "chrome/browser/extensions/extension_service.h" 10 #include "chrome/browser/extensions/extension_service.h"
10 #include "chrome/browser/extensions/extension_system.h" 11 #include "chrome/browser/extensions/extension_system.h"
11 #include "chrome/browser/ui/extensions/application_launch.h" 12 #include "chrome/browser/ui/extensions/application_launch.h"
12 #include "chrome/common/chrome_switches.h" 13 #include "chrome/common/chrome_switches.h"
13 #include "chrome/common/pref_names.h" 14 #include "chrome/common/pref_names.h"
14 #include "chromeos/chromeos_switches.h" 15 #include "chromeos/chromeos_switches.h"
15 #include "components/user_prefs/pref_registry_syncable.h" 16 #include "components/user_prefs/pref_registry_syncable.h"
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 user_prefs::PrefRegistrySyncable::SYNCABLE_PRIORITY_PREF); 95 user_prefs::PrefRegistrySyncable::SYNCABLE_PRIORITY_PREF);
95 } 96 }
96 97
97 void MaybeLaunchDialogAfterSessionStart() { 98 void MaybeLaunchDialogAfterSessionStart() {
98 UserManager* user_manager = UserManager::Get(); 99 UserManager* user_manager = UserManager::Get();
99 new DialogLauncher( 100 new DialogLauncher(
100 user_manager->GetProfileByUser(user_manager->GetActiveUser())); 101 user_manager->GetProfileByUser(user_manager->GetActiveUser()));
101 } 102 }
102 103
103 void LaunchTutorial() { 104 void LaunchTutorial() {
105 UMA_HISTOGRAM_COUNTS("CrosFirstRun.TutorialLaunched", 1);
Alexei Svitkine (slow) 2014/01/15 16:02:38 This should probably be UMA_HISTOGRAM_BOOLEAN or a
dzhioev (left Google) 2014/01/15 22:12:54 It's intended to count how many times tutorial was
Alexei Svitkine (slow) 2014/01/15 22:21:36 UMA_HISTOGRAM_BOOLEAN() should do what you want he
dzhioev (left Google) 2014/01/16 13:21:14 Done.
104 FirstRunController::Start(); 106 FirstRunController::Start();
105 } 107 }
106 108
107 } // namespace first_run 109 } // namespace first_run
108 } // namespace chromeos 110 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698