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

Side by Side Diff: chrome/browser/ui/webui/sync_promo/sync_promo_handler.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_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_SYNC_PROMO_SYNC_PROMO_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_SYNC_PROMO_SYNC_PROMO_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_SYNC_PROMO_SYNC_PROMO_HANDLER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/ui/webui/sync_setup_handler.h" 9 #include "chrome/browser/ui/webui/sync_setup_handler.h"
10 10
(...skipping 23 matching lines...) Expand all
34 34
35 protected: 35 protected:
36 virtual void ShowSetupUI() OVERRIDE; 36 virtual void ShowSetupUI() OVERRIDE;
37 37
38 virtual void RecordSignin() OVERRIDE; 38 virtual void RecordSignin() OVERRIDE;
39 39
40 private: 40 private:
41 // JavaScript callback handler to close the sync promo. 41 // JavaScript callback handler to close the sync promo.
42 void HandleCloseSyncPromo(const base::ListValue* args); 42 void HandleCloseSyncPromo(const base::ListValue* args);
43 43
44 // Gets the sync promo layout for the current sync promo version.
45 int GetPromoVersion();
46
47 // JavaScript callback handler to initialize the sync promo. 44 // JavaScript callback handler to initialize the sync promo.
48 void HandleInitializeSyncPromo(const base::ListValue* args); 45 void HandleInitializeSyncPromo(const base::ListValue* args);
49 46
50 // JavaScript handler to record the duration for which the throbber was 47 // JavaScript handler to record the duration for which the throbber was
51 // visible during an attempted sign-in flow. 48 // visible during an attempted sign-in flow.
52 void HandleRecordThrobberTime(const base::ListValue* args); 49 void HandleRecordThrobberTime(const base::ListValue* args);
53 50
54 // JavaScript handler to record the number of times a user attempted to sign 51 // JavaScript handler to record the number of times a user attempted to sign
55 // in to chrome while they were on the sync promo page. 52 // in to chrome while they were on the sync promo page.
56 void HandleRecordSignInAttempts(const base::ListValue* args); 53 void HandleRecordSignInAttempts(const base::ListValue* args);
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 bool window_already_closed_; 87 bool window_already_closed_;
91 88
92 // Extra UMA histogram name to log stats to, based on the source for showing 89 // Extra UMA histogram name to log stats to, based on the source for showing
93 // the sync promo page. 90 // the sync promo page.
94 std::string histogram_name_; 91 std::string histogram_name_;
95 92
96 DISALLOW_COPY_AND_ASSIGN(SyncPromoHandler); 93 DISALLOW_COPY_AND_ASSIGN(SyncPromoHandler);
97 }; 94 };
98 95
99 #endif // CHROME_BROWSER_UI_WEBUI_SYNC_PROMO_SYNC_PROMO_HANDLER_H_ 96 #endif // CHROME_BROWSER_UI_WEBUI_SYNC_PROMO_SYNC_PROMO_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698