| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_H_ | 5 #ifndef CHROME_BROWSER_FIRST_RUN_H_ |
| 6 #define CHROME_BROWSER_FIRST_RUN_H_ | 6 #define CHROME_BROWSER_FIRST_RUN_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 // dialogs. The detailed settings in the preference file is reported via | 62 // dialogs. The detailed settings in the preference file is reported via |
| 63 // preference_details. | 63 // preference_details. |
| 64 // | 64 // |
| 65 // This function destroys any existing prefs file and it is meant to be | 65 // This function destroys any existing prefs file and it is meant to be |
| 66 // invoked only on first run. | 66 // invoked only on first run. |
| 67 // | 67 // |
| 68 // See chrome/installer/util/master_preferences.h for a description of | 68 // See chrome/installer/util/master_preferences.h for a description of |
| 69 // 'master_preferences' file. | 69 // 'master_preferences' file. |
| 70 static bool ProcessMasterPreferences(const FilePath& user_data_dir, | 70 static bool ProcessMasterPreferences(const FilePath& user_data_dir, |
| 71 const FilePath& master_prefs_path, | 71 const FilePath& master_prefs_path, |
| 72 int* preference_details, | 72 std::vector<std::wstring>* new_tabs, |
| 73 std::vector<std::wstring>* new_tabs); | 73 int* ping_delay); |
| 74 | 74 |
| 75 // Sets the kShouldShowFirstRunBubble local state pref so that the browser | 75 // Sets the kShouldShowFirstRunBubble local state pref so that the browser |
| 76 // shows the bubble once the main message loop gets going. Returns false if | 76 // shows the bubble once the main message loop gets going. Returns false if |
| 77 // the pref could not be set. | 77 // the pref could not be set. |
| 78 static bool SetShowFirstRunBubblePref(); | 78 static bool SetShowFirstRunBubblePref(); |
| 79 | 79 |
| 80 // Sets the kShouldUseOEMFirstRunBubble local state pref so that the | 80 // Sets the kShouldUseOEMFirstRunBubble local state pref so that the |
| 81 // browser shows the OEM first run bubble once the main message loop | 81 // browser shows the OEM first run bubble once the main message loop |
| 82 // gets going. Returns false if the pref could not be set. | 82 // gets going. Returns false if the pref could not be set. |
| 83 static bool SetOEMFirstRunBubblePref(); | 83 static bool SetOEMFirstRunBubblePref(); |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 // Show the First Run UI to the user, allowing them to create shortcuts for | 146 // Show the First Run UI to the user, allowing them to create shortcuts for |
| 147 // the app, import their bookmarks and other data from another browser into | 147 // the app, import their bookmarks and other data from another browser into |
| 148 // |profile| and perhaps some other tasks. | 148 // |profile| and perhaps some other tasks. |
| 149 // |process_singleton| is used to lock the handling of CopyData messages | 149 // |process_singleton| is used to lock the handling of CopyData messages |
| 150 // while the First Run UI is visible. | 150 // while the First Run UI is visible. |
| 151 // Returns true if the user clicked "Start", false if the user pressed "Cancel" | 151 // Returns true if the user clicked "Start", false if the user pressed "Cancel" |
| 152 // or closed the dialog. | 152 // or closed the dialog. |
| 153 bool OpenFirstRunDialog(Profile* profile, ProcessSingleton* process_singleton); | 153 bool OpenFirstRunDialog(Profile* profile, ProcessSingleton* process_singleton); |
| 154 | 154 |
| 155 #endif // CHROME_BROWSER_FIRST_RUN_H_ | 155 #endif // CHROME_BROWSER_FIRST_RUN_H_ |
| OLD | NEW |