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

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

Issue 14175017: Remove one-click signin inforbar, since its now replaced with the gaia (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 7 years, 8 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
Index: chrome/browser/ui/sync/one_click_signin_infobar_delegate.h
diff --git a/chrome/browser/ui/sync/one_click_signin_infobar_delegate.h b/chrome/browser/ui/sync/one_click_signin_infobar_delegate.h
deleted file mode 100644
index 4ec37f22370dd82843bc1582fdcdae857a93a3d8..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/sync/one_click_signin_infobar_delegate.h
+++ /dev/null
@@ -1,48 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_UI_SYNC_ONE_CLICK_SIGNIN_INFOBAR_DELEGATE_H_
-#define CHROME_BROWSER_UI_SYNC_ONE_CLICK_SIGNIN_INFOBAR_DELEGATE_H_
-
-#include "chrome/browser/infobars/confirm_infobar_delegate.h"
-#include "third_party/skia/include/core/SkColor.h"
-
-// An interface derived from ConfirmInfoBarDelegate implemented for the
-// one-click sign in inforbar experiments.
-class OneClickSigninInfoBarDelegate : public ConfirmInfoBarDelegate {
- public:
- // A set of alternate colours for the experiment. The colour values are only
- // used if |enabled| is true. Otherwise the infobar uses its default colours.
- struct AlternateColors {
- bool enabled;
- SkColor infobar_top_color;
- SkColor infobar_bottom_color;
- SkColor button_text_color;
- SkColor button_background_color;
- SkColor button_border_color;
- };
-
- virtual ~OneClickSigninInfoBarDelegate();
-
- // Returns the colours to use with the one click signin infobar. The colours
- // depend on the experimental group.
- virtual void GetAlternateColors(AlternateColors* alt_colors);
-
- protected:
- explicit OneClickSigninInfoBarDelegate(InfoBarService* infobar_service);
-
- private:
-#if defined(TOOLKIT_VIEWS)
- // Because the experiment is only running for views, only override this
- // function there. Other platforms that support one-click sign in will
- // create a regular confirm infobar with no support for colour changes.
-
- // InfoBarDelegate:
- virtual InfoBar* CreateInfoBar(InfoBarService* owner) OVERRIDE;
-#endif
-
- DISALLOW_COPY_AND_ASSIGN(OneClickSigninInfoBarDelegate);
-};
-
-#endif // CHROME_BROWSER_UI_SYNC_ONE_CLICK_SIGNIN_INFOBAR_DELEGATE_H_
« no previous file with comments | « chrome/browser/ui/sync/one_click_signin_helper.cc ('k') | chrome/browser/ui/sync/one_click_signin_infobar_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698