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

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

Issue 165382: Merge 22284 - Refactoring of master preferences parsing before adding a new p... (Closed) Base URL: svn://chrome-svn/chrome/branches/195/src/
Patch Set: Created 11 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/browser_main.cc ('k') | chrome/browser/first_run_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:mergeinfo
Merged /branches/chrome_webkit_merge_branch/chrome/browser/first_run.h:r69-2775
Merged /trunk/src/chrome/browser/first_run.h:r22284
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/browser_main.cc ('k') | chrome/browser/first_run_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698