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

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

Issue 9730021: Remove experimental sync promo layouts (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: a Created 8 years, 9 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_HANDLER2_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_SYNC_PROMO_SYNC_PROMO_HANDLER2_H_
6 #define CHROME_BROWSER_UI_WEBUI_SYNC_PROMO_SYNC_PROMO_HANDLER2_H_ 6 #define CHROME_BROWSER_UI_WEBUI_SYNC_PROMO_SYNC_PROMO_HANDLER2_H_
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/ui/webui/sync_setup_handler2.h" 9 #include "chrome/browser/ui/webui/sync_setup_handler2.h"
10 10
(...skipping 26 matching lines...) Expand all
37 const content::NotificationSource& source, 37 const content::NotificationSource& source,
38 const content::NotificationDetails& details) OVERRIDE; 38 const content::NotificationDetails& details) OVERRIDE;
39 39
40 protected: 40 protected:
41 virtual void ShowSetupUI() OVERRIDE; 41 virtual void ShowSetupUI() OVERRIDE;
42 42
43 private: 43 private:
44 // JavaScript callback handler to close the sync promo. 44 // JavaScript callback handler to close the sync promo.
45 void HandleCloseSyncPromo(const base::ListValue* args); 45 void HandleCloseSyncPromo(const base::ListValue* args);
46 46
47 // Gets the sync promo layout for the current sync promo version.
48 int GetPromoVersion();
49
50 // JavaScript callback handler to initialize the sync promo. 47 // JavaScript callback handler to initialize the sync promo.
51 void HandleInitializeSyncPromo(const base::ListValue* args); 48 void HandleInitializeSyncPromo(const base::ListValue* args);
52 49
53 // JavaScript handler to record the duration for which the throbber was 50 // JavaScript handler to record the duration for which the throbber was
54 // visible during an attempted sign-in flow. 51 // visible during an attempted sign-in flow.
55 void HandleRecordThrobberTime(const base::ListValue* args); 52 void HandleRecordThrobberTime(const base::ListValue* args);
56 53
57 // JavaScript handler to record the number of times a user attempted to sign 54 // JavaScript handler to record the number of times a user attempted to sign
58 // in to chrome while they were on the sync promo page. 55 // in to chrome while they were on the sync promo page.
59 void HandleRecordSignInAttempts(const base::ListValue* args); 56 void HandleRecordSignInAttempts(const base::ListValue* args);
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 // Extra UMA histogram name to log stats to, based on the source for showing 95 // Extra UMA histogram name to log stats to, based on the source for showing
99 // the sync promo page. 96 // the sync promo page.
100 std::string histogram_name_; 97 std::string histogram_name_;
101 98
102 DISALLOW_COPY_AND_ASSIGN(SyncPromoHandler2); 99 DISALLOW_COPY_AND_ASSIGN(SyncPromoHandler2);
103 }; 100 };
104 101
105 } // namespace options2 102 } // namespace options2
106 103
107 #endif // CHROME_BROWSER_UI_WEBUI_SYNC_PROMO_SYNC_PROMO_HANDLER2_H_ 104 #endif // CHROME_BROWSER_UI_WEBUI_SYNC_PROMO_SYNC_PROMO_HANDLER2_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698