| OLD | NEW |
| 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 "chromeos/chromeos_switches.h" | 14 #include "chromeos/chromeos_switches.h" |
| 14 #include "content/public/browser/notification_observer.h" | 15 #include "content/public/browser/notification_observer.h" |
| 15 #include "content/public/browser/notification_registrar.h" | 16 #include "content/public/browser/notification_registrar.h" |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 | 81 |
| 81 } // namespace | 82 } // namespace |
| 82 | 83 |
| 83 void MaybeLaunchDialogAfterSessionStart() { | 84 void MaybeLaunchDialogAfterSessionStart() { |
| 84 UserManager* user_manager = UserManager::Get(); | 85 UserManager* user_manager = UserManager::Get(); |
| 85 new DialogLauncher( | 86 new DialogLauncher( |
| 86 user_manager->GetProfileByUser(user_manager->GetActiveUser())); | 87 user_manager->GetProfileByUser(user_manager->GetActiveUser())); |
| 87 } | 88 } |
| 88 | 89 |
| 89 void LaunchTutorial() { | 90 void LaunchTutorial() { |
| 91 UMA_HISTOGRAM_BOOLEAN("CrosFirstRun.TutorialLaunched", true); |
| 90 FirstRunController::Start(); | 92 FirstRunController::Start(); |
| 91 } | 93 } |
| 92 | 94 |
| 93 } // namespace first_run | 95 } // namespace first_run |
| 94 } // namespace chromeos | 96 } // namespace chromeos |
| OLD | NEW |