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

Side by Side Diff: chrome/browser/ui/webui/sync_promo/sync_promo_trial.h

Issue 9225053: Add a blocking version of the sync promo dialog (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address review comments Created 8 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_UI_WEBUI_SYNC_PROMO_SYNC_PROMO_TRIAL_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_SYNC_PROMO_SYNC_PROMO_TRIAL_H_
6 #define CHROME_BROWSER_UI_WEBUI_SYNC_PROMO_SYNC_PROMO_TRIAL_H_ 6 #define CHROME_BROWSER_UI_WEBUI_SYNC_PROMO_SYNC_PROMO_TRIAL_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "chrome/browser/ui/webui/sync_promo/sync_promo_ui.h"
Dan Beam 2012/01/30 18:10:05 convert to forward, possibly?
sail 2012/01/30 21:52:36 there's no easy way to forward declare enums
Dan Beam 2012/01/31 00:31:39 Ah, OK.
9 10
10 class Profile; 11 class Profile;
11 namespace content { 12 namespace content {
12 class WebUI; 13 class WebUI;
13 } 14 }
14 15
15 namespace sync_promo_trial { 16 namespace sync_promo_trial {
16 17
17 enum StartupOverride { 18 enum StartupOverride {
18 STARTUP_OVERRIDE_NONE, 19 STARTUP_OVERRIDE_NONE,
(...skipping 12 matching lines...) Expand all
31 // promo trials. |web_ui| is the web UI where the promo was shown. 32 // promo trials. |web_ui| is the web UI where the promo was shown.
32 void RecordUserShownPromo(content::WebUI* web_ui); 33 void RecordUserShownPromo(content::WebUI* web_ui);
33 34
34 // Records that the user signed into sync for any currently running sync promo 35 // Records that the user signed into sync for any currently running sync promo
35 // trials. |web_ui| is the web UI where the user signed into sync. 36 // trials. |web_ui| is the web UI where the user signed into sync.
36 void RecordUserSignedIn(content::WebUI* web_ui); 37 void RecordUserSignedIn(content::WebUI* web_ui);
37 38
38 // Returns true if a sync promo trial is running that overrides the sync promo 39 // Returns true if a sync promo trial is running that overrides the sync promo
39 // version. If such a trial is running then on return |version| will contain the 40 // version. If such a trial is running then on return |version| will contain the
40 // version of the sync promo to show. |version| must not be NULL. 41 // version of the sync promo to show. |version| must not be NULL.
41 bool GetSyncPromoVersionForCurrentTrial(int* version); 42 bool GetSyncPromoVersionForCurrentTrial(SyncPromoUI::Version* version);
42 43
43 } // namespace sync_promo_trial 44 } // namespace sync_promo_trial
44 45
45 #endif // CHROME_BROWSER_UI_WEBUI_SYNC_PROMO_SYNC_PROMO_TRIAL_H_ 46 #endif // CHROME_BROWSER_UI_WEBUI_SYNC_PROMO_SYNC_PROMO_TRIAL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698