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

Side by Side Diff: chrome/browser/chromeos/first_run/first_run_controller.h

Issue 1870793002: Convert //chrome/browser/chromeos from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 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
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 #ifndef CHROME_BROWSER_CHROMEOS_FIRST_RUN_FIRST_RUN_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_FIRST_RUN_FIRST_RUN_CONTROLLER_H_
6 #define CHROME_BROWSER_CHROMEOS_FIRST_RUN_FIRST_RUN_CONTROLLER_H_ 6 #define CHROME_BROWSER_CHROMEOS_FIRST_RUN_FIRST_RUN_CONTROLLER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <memory>
10 #include <string> 11 #include <string>
11 #include <vector> 12 #include <vector>
12 13
13 #include "ash/first_run/first_run_helper.h" 14 #include "ash/first_run/first_run_helper.h"
14 #include "base/callback.h" 15 #include "base/callback.h"
15 #include "base/compiler_specific.h" 16 #include "base/compiler_specific.h"
16 #include "base/macros.h" 17 #include "base/macros.h"
17 #include "base/memory/linked_ptr.h" 18 #include "base/memory/linked_ptr.h"
18 #include "base/memory/scoped_ptr.h"
19 #include "base/time/time.h" 19 #include "base/time/time.h"
20 #include "chrome/browser/ui/webui/chromeos/first_run/first_run_actor.h" 20 #include "chrome/browser/ui/webui/chromeos/first_run/first_run_actor.h"
21 21
22 class Profile; 22 class Profile;
23 23
24 namespace content { 24 namespace content {
25 class WebContents; 25 class WebContents;
26 } 26 }
27 27
28 namespace chromeos { 28 namespace chromeos {
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 void RegisterSteps(); 73 void RegisterSteps();
74 void ShowNextStep(); 74 void ShowNextStep();
75 void AdvanceStep(); 75 void AdvanceStep();
76 first_run::Step* GetCurrentStep() const; 76 first_run::Step* GetCurrentStep() const;
77 77
78 // The object providing interface to UI layer. It's not directly owned by 78 // The object providing interface to UI layer. It's not directly owned by
79 // FirstRunController. 79 // FirstRunController.
80 FirstRunActor* actor_; 80 FirstRunActor* actor_;
81 81
82 // Helper for manipulating and retreiving information from Shell. 82 // Helper for manipulating and retreiving information from Shell.
83 scoped_ptr<ash::FirstRunHelper> shell_helper_; 83 std::unique_ptr<ash::FirstRunHelper> shell_helper_;
84 84
85 // List of all tutorial steps. 85 // List of all tutorial steps.
86 Steps steps_; 86 Steps steps_;
87 87
88 // Index of step that is currently shown. 88 // Index of step that is currently shown.
89 size_t current_step_index_; 89 size_t current_step_index_;
90 90
91 // Profile used for webui and help app. 91 // Profile used for webui and help app.
92 Profile* user_profile_; 92 Profile* user_profile_;
93 93
94 // The work that should be made after actor has been finalized. 94 // The work that should be made after actor has been finalized.
95 base::Closure on_actor_finalized_; 95 base::Closure on_actor_finalized_;
96 96
97 // Web contents of WebUI. 97 // Web contents of WebUI.
98 content::WebContents* web_contents_for_tests_; 98 content::WebContents* web_contents_for_tests_;
99 99
100 // Time when tutorial was started. 100 // Time when tutorial was started.
101 base::Time start_time_; 101 base::Time start_time_;
102 102
103 DISALLOW_COPY_AND_ASSIGN(FirstRunController); 103 DISALLOW_COPY_AND_ASSIGN(FirstRunController);
104 }; 104 };
105 105
106 } // namespace chromeos 106 } // namespace chromeos
107 107
108 #endif // CHROME_BROWSER_CHROMEOS_FIRST_RUN_FIRST_RUN_CONTROLLER_H_ 108 #endif // CHROME_BROWSER_CHROMEOS_FIRST_RUN_FIRST_RUN_CONTROLLER_H_
109 109
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/first_run/drive_first_run_controller.cc ('k') | chrome/browser/chromeos/first_run/step.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698