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

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

Issue 12079097: Introduce PrefRegistrySyncable, simplifying PrefServiceSyncable. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to head again; base::File changes conflicted. Created 7 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 | Annotate | Revision Log
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 <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "base/gtest_prod_util.h" 13 #include "base/gtest_prod_util.h"
14 #include "base/memory/ref_counted.h" 14 #include "base/memory/ref_counted.h"
15 #include "content/public/browser/notification_observer.h" 15 #include "content/public/browser/notification_observer.h"
16 #include "content/public/browser/notification_registrar.h" 16 #include "content/public/browser/notification_registrar.h"
17 #include "ui/gfx/native_widget_types.h" 17 #include "ui/gfx/native_widget_types.h"
18 18
19 class CommandLine; 19 class CommandLine;
20 class GURL; 20 class GURL;
21 class PrefServiceSyncable; 21 class PrefRegistrySyncable;
22 class Profile; 22 class Profile;
23 class ProcessSingleton; 23 class ProcessSingleton;
24 24
25 namespace base { 25 namespace base {
26 class FilePath; 26 class FilePath;
27 } 27 }
28 28
29 // This namespace contains the chrome first-run installation actions needed to 29 // This namespace contains the chrome first-run installation actions needed to
30 // fully test the custom installer. It also contains the opposite actions to 30 // fully test the custom installer. It also contains the opposite actions to
31 // execute during uninstall. When the first run UI is ready we won't 31 // execute during uninstall. When the first run UI is ready we won't
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 // Returns true if this is the first time chrome is run for this user. 76 // Returns true if this is the first time chrome is run for this user.
77 bool IsChromeFirstRun(); 77 bool IsChromeFirstRun();
78 78
79 // Creates the sentinel file that signals that chrome has been configured. 79 // Creates the sentinel file that signals that chrome has been configured.
80 bool CreateSentinel(); 80 bool CreateSentinel();
81 81
82 // Get RLZ ping delay pref name. 82 // Get RLZ ping delay pref name.
83 std::string GetPingDelayPrefName(); 83 std::string GetPingDelayPrefName();
84 84
85 // Register user preferences used by the MasterPrefs structure. 85 // Register user preferences used by the MasterPrefs structure.
86 void RegisterUserPrefs(PrefServiceSyncable* prefs); 86 void RegisterUserPrefs(PrefRegistrySyncable* registry);
87 87
88 // Removes the sentinel file created in ConfigDone(). Returns false if the 88 // Removes the sentinel file created in ConfigDone(). Returns false if the
89 // sentinel file could not be removed. 89 // sentinel file could not be removed.
90 bool RemoveSentinel(); 90 bool RemoveSentinel();
91 91
92 // Sets the kShowFirstRunBubbleOption local state pref so that the browser 92 // Sets the kShowFirstRunBubbleOption local state pref so that the browser
93 // shows the bubble once the main message loop gets going (or refrains from 93 // shows the bubble once the main message loop gets going (or refrains from
94 // showing the bubble, if |show_bubble| is not FIRST_RUN_BUBBLE_SHOW). 94 // showing the bubble, if |show_bubble| is not FIRST_RUN_BUBBLE_SHOW).
95 // Once FIRST_RUN_BUBBLE_SUPPRESS is set, no other value can be set. 95 // Once FIRST_RUN_BUBBLE_SUPPRESS is set, no other value can be set.
96 // Returns false if the pref service could not be retrieved. 96 // Returns false if the pref service could not be retrieved.
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 const content::NotificationDetails& details) OVERRIDE; 176 const content::NotificationDetails& details) OVERRIDE;
177 177
178 content::NotificationRegistrar registrar_; 178 content::NotificationRegistrar registrar_;
179 179
180 DISALLOW_COPY_AND_ASSIGN(FirstRunBubbleLauncher); 180 DISALLOW_COPY_AND_ASSIGN(FirstRunBubbleLauncher);
181 }; 181 };
182 182
183 } // namespace first_run 183 } // namespace first_run
184 184
185 #endif // CHROME_BROWSER_FIRST_RUN_FIRST_RUN_H_ 185 #endif // CHROME_BROWSER_FIRST_RUN_FIRST_RUN_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/updater/extension_updater_unittest.cc ('k') | chrome/browser/first_run/first_run.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698