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

Unified Diff: chrome/browser/ui/sync/one_click_signin_helper.h

Issue 10911169: Setup field trial for one-click signin inforbar. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 8 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/chrome_browser_field_trials.cc ('k') | chrome/browser/ui/sync/one_click_signin_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/sync/one_click_signin_helper.h
diff --git a/chrome/browser/ui/sync/one_click_signin_helper.h b/chrome/browser/ui/sync/one_click_signin_helper.h
index f1ffb84185bc4def86089bcdfd904928621ebc91..b9b1d47a3a7363174317f1b2b7a6dd2c8377adb4 100644
--- a/chrome/browser/ui/sync/one_click_signin_helper.h
+++ b/chrome/browser/ui/sync/one_click_signin_helper.h
@@ -24,6 +24,9 @@ class URLRequest;
// more about what this means.
class OneClickSigninHelper : public content::WebContentsObserver {
public:
+ explicit OneClickSigninHelper(content::WebContents* web_contents);
+ virtual ~OneClickSigninHelper();
+
// Returns true if the one-click signin feature can be offered at this time.
// It can be offered if the contents is not in an incognito window. If
// |check_connected| is true, then the profile is checked to see if it's
@@ -34,6 +37,9 @@ class OneClickSigninHelper : public content::WebContentsObserver {
const std::string& email,
bool check_connected);
+ // Initialize a finch experiment for the infobar.
+ static void InitializeFieldTrial();
+
// Looks for the Google-Accounts-SignIn response header, and if found,
// tries to display an infobar in the tab contents identified by the
// child/route id.
@@ -41,9 +47,6 @@ class OneClickSigninHelper : public content::WebContentsObserver {
int child_id,
int route_id);
- explicit OneClickSigninHelper(content::WebContents* web_contents);
- virtual ~OneClickSigninHelper();
-
private:
// The portion of ShowInfoBarIfPossible() that needs to run on the UI thread.
static void ShowInfoBarUIThread(const std::string& session_index,
« no previous file with comments | « chrome/browser/chrome_browser_field_trials.cc ('k') | chrome/browser/ui/sync/one_click_signin_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698