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

Unified Diff: chrome/browser/api/infobars/one_click_signin_infobar_delegate.cc

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
Index: chrome/browser/api/infobars/one_click_signin_infobar_delegate.cc
diff --git a/chrome/browser/api/infobars/one_click_signin_infobar_delegate.cc b/chrome/browser/api/infobars/one_click_signin_infobar_delegate.cc
new file mode 100644
index 0000000000000000000000000000000000000000..6a3c1705d6eaf9c886b22e9cc23a8ffa02c7a5a1
--- /dev/null
+++ b/chrome/browser/api/infobars/one_click_signin_infobar_delegate.cc
@@ -0,0 +1,25 @@
+// 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.
+
+#include "chrome/browser/api/infobars/one_click_signin_infobar_delegate.h"
+
+const SkColor OneClickSigninInfoBarDelegate::kDefaultColor =
+ SkColorSetARGB(0, 0, 0, 0);
+
+OneClickSigninInfoBarDelegate::OneClickSigninInfoBarDelegate(
+ InfoBarService* infobar_service)
+ : ConfirmInfoBarDelegate(infobar_service) {
+}
+
+OneClickSigninInfoBarDelegate::~OneClickSigninInfoBarDelegate() {
+}
+
+void OneClickSigninInfoBarDelegate::GetAlternateColors(
+ AlternateColors* alt_colors) {
+ alt_colors->infobar_bottom_color = kDefaultColor;
+ alt_colors->infobar_top_color = kDefaultColor;
+ alt_colors->button_text_color = kDefaultColor;
+ alt_colors->button_background_color = kDefaultColor;
+ alt_colors->button_border_color = kDefaultColor;
+}

Powered by Google App Engine
This is Rietveld 408576698