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

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

Issue 2714853002: Remove kDistroDict from Preferences. (Closed)
Patch Set: Format and hide constant behind flag too Created 3 years, 10 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 (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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 68
69 // See ProcessMasterPreferences for more info about this structure. 69 // See ProcessMasterPreferences for more info about this structure.
70 struct MasterPrefs { 70 struct MasterPrefs {
71 MasterPrefs(); 71 MasterPrefs();
72 ~MasterPrefs(); 72 ~MasterPrefs();
73 73
74 // TODO(macourteau): as part of the master preferences refactoring effort, 74 // TODO(macourteau): as part of the master preferences refactoring effort,
75 // remove items from here which are being stored temporarily only to be later 75 // remove items from here which are being stored temporarily only to be later
76 // dumped into local_state. Also see related TODO in chrome_browser_main.cc. 76 // dumped into local_state. Also see related TODO in chrome_browser_main.cc.
77 77
78 int ping_delay;
79 bool homepage_defined; 78 bool homepage_defined;
80 int do_import_items; 79 int do_import_items;
81 int dont_import_items; 80 int dont_import_items;
82 bool make_chrome_default_for_user; 81 bool make_chrome_default_for_user;
83 bool suppress_first_run_default_browser_prompt; 82 bool suppress_first_run_default_browser_prompt;
84 bool welcome_page_on_os_upgrade_enabled; 83 bool welcome_page_on_os_upgrade_enabled;
85 std::vector<GURL> new_tabs; 84 std::vector<GURL> new_tabs;
86 std::vector<GURL> bookmarks; 85 std::vector<GURL> bookmarks;
87 std::string import_bookmarks_path; 86 std::string import_bookmarks_path;
88 std::string compressed_variations_seed; 87 std::string compressed_variations_seed;
(...skipping 20 matching lines...) Expand all
109 // GetMetricsReportingDefaultState in 108 // GetMetricsReportingDefaultState in
110 // chrome/browser/metrics/metrics_reporting_state.h, which gives a value that 109 // chrome/browser/metrics/metrics_reporting_state.h, which gives a value that
111 // was stored during first-run. 110 // was stored during first-run.
112 bool IsMetricsReportingOptIn(); 111 bool IsMetricsReportingOptIn();
113 112
114 // Creates the first run sentinel if needed. This should only be called after 113 // Creates the first run sentinel if needed. This should only be called after
115 // the process singleton has been grabbed by the current process 114 // the process singleton has been grabbed by the current process
116 // (http://crbug.com/264694). 115 // (http://crbug.com/264694).
117 void CreateSentinelIfNeeded(); 116 void CreateSentinelIfNeeded();
118 117
119 // Get RLZ ping delay pref name.
120 std::string GetPingDelayPrefName();
121
122 // Register user preferences used by the MasterPrefs structure. 118 // Register user preferences used by the MasterPrefs structure.
123 void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); 119 void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry);
124 120
125 // Sets the kShowFirstRunBubbleOption local state pref so that the browser 121 // Sets the kShowFirstRunBubbleOption local state pref so that the browser
126 // shows the bubble once the main message loop gets going (or refrains from 122 // shows the bubble once the main message loop gets going (or refrains from
127 // showing the bubble, if |show_bubble| is not FIRST_RUN_BUBBLE_SHOW). 123 // showing the bubble, if |show_bubble| is not FIRST_RUN_BUBBLE_SHOW).
128 // Once FIRST_RUN_BUBBLE_SUPPRESS is set, no other value can be set. 124 // Once FIRST_RUN_BUBBLE_SUPPRESS is set, no other value can be set.
129 // Returns false if the pref service could not be retrieved. 125 // Returns false if the pref service could not be retrieved.
130 bool SetShowFirstRunBubblePref(FirstRunBubbleOptions show_bubble_option); 126 bool SetShowFirstRunBubblePref(FirstRunBubbleOptions show_bubble_option);
131 127
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 // 193 //
198 // See chrome/installer/util/master_preferences.h for a description of 194 // See chrome/installer/util/master_preferences.h for a description of
199 // 'master_preferences' file. 195 // 'master_preferences' file.
200 ProcessMasterPreferencesResult ProcessMasterPreferences( 196 ProcessMasterPreferencesResult ProcessMasterPreferences(
201 const base::FilePath& user_data_dir, 197 const base::FilePath& user_data_dir,
202 MasterPrefs* out_prefs); 198 MasterPrefs* out_prefs);
203 199
204 } // namespace first_run 200 } // namespace first_run
205 201
206 #endif // CHROME_BROWSER_FIRST_RUN_FIRST_RUN_H_ 202 #endif // CHROME_BROWSER_FIRST_RUN_FIRST_RUN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698