| 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 "chrome/browser/chromeos/first_run/first_run_controller.h" | 5 #include "chrome/browser/chromeos/first_run/first_run_controller.h" |
| 6 | 6 |
| 7 #include "ash/shell.h" | 7 #include "ash/shell.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
| 10 #include "base/metrics/histogram.h" | 10 #include "base/metrics/histogram.h" |
| 11 #include "chrome/browser/chromeos/first_run/first_run_view.h" | 11 #include "chrome/browser/chromeos/first_run/first_run_view.h" |
| 12 #include "chrome/browser/chromeos/first_run/metrics.h" | 12 #include "chrome/browser/chromeos/first_run/metrics.h" |
| 13 #include "chrome/browser/chromeos/first_run/steps/app_list_step.h" | 13 #include "chrome/browser/chromeos/first_run/steps/app_list_step.h" |
| 14 #include "chrome/browser/chromeos/first_run/steps/help_step.h" | 14 #include "chrome/browser/chromeos/first_run/steps/help_step.h" |
| 15 #include "chrome/browser/chromeos/first_run/steps/tray_step.h" | 15 #include "chrome/browser/chromeos/first_run/steps/tray_step.h" |
| 16 #include "chrome/browser/chromeos/login/user_manager.h" | 16 #include "chrome/browser/chromeos/login/users/user_manager.h" |
| 17 #include "chrome/browser/ui/chrome_pages.h" | 17 #include "chrome/browser/ui/chrome_pages.h" |
| 18 #include "ui/views/widget/widget.h" | 18 #include "ui/views/widget/widget.h" |
| 19 | 19 |
| 20 namespace { | 20 namespace { |
| 21 | 21 |
| 22 size_t NONE_STEP_INDEX = std::numeric_limits<size_t>::max(); | 22 size_t NONE_STEP_INDEX = std::numeric_limits<size_t>::max(); |
| 23 | 23 |
| 24 // Instance of currently running controller, or NULL if controller is not | 24 // Instance of currently running controller, or NULL if controller is not |
| 25 // running now. | 25 // running now. |
| 26 chromeos::FirstRunController* g_instance; | 26 chromeos::FirstRunController* g_instance; |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 current_step_index_ = NONE_STEP_INDEX; | 185 current_step_index_ = NONE_STEP_INDEX; |
| 186 } | 186 } |
| 187 | 187 |
| 188 first_run::Step* FirstRunController::GetCurrentStep() const { | 188 first_run::Step* FirstRunController::GetCurrentStep() const { |
| 189 return current_step_index_ != NONE_STEP_INDEX ? | 189 return current_step_index_ != NONE_STEP_INDEX ? |
| 190 steps_[current_step_index_].get() : NULL; | 190 steps_[current_step_index_].get() : NULL; |
| 191 } | 191 } |
| 192 | 192 |
| 193 } // namespace chromeos | 193 } // namespace chromeos |
| 194 | 194 |
| OLD | NEW |