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

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

Issue 445353004: GetProfileByUser deprecated and renamed to GetProfileByUserUnsafe. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 6 years, 4 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 "base/metrics/histogram.h"
7 #include "base/prefs/pref_service.h" 7 #include "base/prefs/pref_service.h"
8 #include "chrome/browser/chrome_notification_types.h" 8 #include "chrome/browser/chrome_notification_types.h"
9 #include "chrome/browser/chromeos/first_run/first_run_controller.h" 9 #include "chrome/browser/chromeos/first_run/first_run_controller.h"
10 #include "chrome/browser/chromeos/login/users/user_manager.h" 10 #include "chrome/browser/chromeos/login/users/user_manager.h"
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 90
91 void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) { 91 void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) {
92 registry->RegisterBooleanPref( 92 registry->RegisterBooleanPref(
93 prefs::kFirstRunTutorialShown, 93 prefs::kFirstRunTutorialShown,
94 false, 94 false,
95 user_prefs::PrefRegistrySyncable::SYNCABLE_PRIORITY_PREF); 95 user_prefs::PrefRegistrySyncable::SYNCABLE_PRIORITY_PREF);
96 } 96 }
97 97
98 void MaybeLaunchDialogAfterSessionStart() { 98 void MaybeLaunchDialogAfterSessionStart() {
99 UserManager* user_manager = UserManager::Get(); 99 UserManager* user_manager = UserManager::Get();
100 new DialogLauncher( 100 new DialogLauncher(ProfileHelper::Get()->GetProfileByUserUnsafe(
101 ProfileHelper::Get()->GetProfileByUser(user_manager->GetActiveUser())); 101 user_manager->GetActiveUser()));
102 } 102 }
103 103
104 void LaunchTutorial() { 104 void LaunchTutorial() {
105 UMA_HISTOGRAM_BOOLEAN("CrosFirstRun.TutorialLaunched", true); 105 UMA_HISTOGRAM_BOOLEAN("CrosFirstRun.TutorialLaunched", true);
106 FirstRunController::Start(); 106 FirstRunController::Start();
107 } 107 }
108 108
109 } // namespace first_run 109 } // namespace first_run
110 } // namespace chromeos 110 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698