OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_FIRST_RUN_FIRST_RUN_H_ | 5 #ifndef CHROME_BROWSER_FIRST_RUN_FIRST_RUN_H_ |
6 #define CHROME_BROWSER_FIRST_RUN_FIRST_RUN_H_ | 6 #define CHROME_BROWSER_FIRST_RUN_FIRST_RUN_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
145 // | 145 // |
146 // This function destroys any existing prefs file and it is meant to be | 146 // This function destroys any existing prefs file and it is meant to be |
147 // invoked only on first run. | 147 // invoked only on first run. |
148 // | 148 // |
149 // See chrome/installer/util/master_preferences.h for a description of | 149 // See chrome/installer/util/master_preferences.h for a description of |
150 // 'master_preferences' file. | 150 // 'master_preferences' file. |
151 ProcessMasterPreferencesResult ProcessMasterPreferences( | 151 ProcessMasterPreferencesResult ProcessMasterPreferences( |
152 const FilePath& user_data_dir, | 152 const FilePath& user_data_dir, |
153 MasterPrefs* out_prefs); | 153 MasterPrefs* out_prefs); |
154 | 154 |
155 #if defined(OS_WIN) | |
grt (UTC plus 2)
2013/01/23 19:02:29
i think it's cleaner to implement this for all pla
huangs
2013/01/24 00:08:08
Moot; code is moved to eula_util.h/cc
| |
156 // Performs a comprehensive test on whether or not EULA has been accepted for | |
157 // Chrome, and returns the result. This result may be obtained via exit code | |
grt (UTC plus 2)
2013/01/23 19:02:29
remove second sentence.
huangs
2013/01/24 00:08:08
Done.
| |
158 // with the Chrome command line "--query-eula-acceptance". | |
159 bool IsEULAAccepted(); | |
160 #endif | |
161 | |
155 // Show the first run search engine bubble at the first appropriate opportunity. | 162 // Show the first run search engine bubble at the first appropriate opportunity. |
156 // This bubble may be delayed by other UI, like global errors and sync promos. | 163 // This bubble may be delayed by other UI, like global errors and sync promos. |
157 class FirstRunBubbleLauncher : public content::NotificationObserver { | 164 class FirstRunBubbleLauncher : public content::NotificationObserver { |
158 public: | 165 public: |
159 // Show the bubble at the first appropriate opportunity. This function | 166 // Show the bubble at the first appropriate opportunity. This function |
160 // instantiates a FirstRunBubbleLauncher, which manages its own lifetime. | 167 // instantiates a FirstRunBubbleLauncher, which manages its own lifetime. |
161 static void ShowFirstRunBubbleSoon(); | 168 static void ShowFirstRunBubbleSoon(); |
162 | 169 |
163 private: | 170 private: |
164 FirstRunBubbleLauncher(); | 171 FirstRunBubbleLauncher(); |
165 virtual ~FirstRunBubbleLauncher(); | 172 virtual ~FirstRunBubbleLauncher(); |
166 | 173 |
167 // content::NotificationObserver override: | 174 // content::NotificationObserver override: |
168 virtual void Observe(int type, | 175 virtual void Observe(int type, |
169 const content::NotificationSource& source, | 176 const content::NotificationSource& source, |
170 const content::NotificationDetails& details) OVERRIDE; | 177 const content::NotificationDetails& details) OVERRIDE; |
171 | 178 |
172 content::NotificationRegistrar registrar_; | 179 content::NotificationRegistrar registrar_; |
173 | 180 |
174 DISALLOW_COPY_AND_ASSIGN(FirstRunBubbleLauncher); | 181 DISALLOW_COPY_AND_ASSIGN(FirstRunBubbleLauncher); |
175 }; | 182 }; |
176 | 183 |
177 } // namespace first_run | 184 } // namespace first_run |
178 | 185 |
179 #endif // CHROME_BROWSER_FIRST_RUN_FIRST_RUN_H_ | 186 #endif // CHROME_BROWSER_FIRST_RUN_FIRST_RUN_H_ |
OLD | NEW |