| OLD | NEW |
| 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 #include "chrome/browser/ui/views/sync/one_click_signin_bubble_view.h" | 5 #include "chrome/browser/ui/views/sync/one_click_signin_bubble_view.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/message_loop.h" | 8 #include "base/message_loop.h" |
| 9 #include "chrome/browser/google/google_util.h" | 9 #include "chrome/browser/google/google_util.h" |
| 10 #include "chrome/browser/ui/browser.h" | 10 #include "chrome/browser/ui/browser.h" |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 void OneClickSigninBubbleView::LinkClicked(views::Link* source, | 167 void OneClickSigninBubbleView::LinkClicked(views::Link* source, |
| 168 int event_flags) { | 168 int event_flags) { |
| 169 StartFade(false); | 169 StartFade(false); |
| 170 | 170 |
| 171 if (source == learn_more_link_) | 171 if (source == learn_more_link_) |
| 172 learn_more_callback_.Run(); | 172 learn_more_callback_.Run(); |
| 173 else | 173 else |
| 174 advanced_callback_.Run(); | 174 advanced_callback_.Run(); |
| 175 } | 175 } |
| 176 | 176 |
| 177 void OneClickSigninBubbleView::ButtonPressed( | 177 void OneClickSigninBubbleView::ButtonPressed(views::Button* sender, |
| 178 views::Button* sender, const views::Event& event) { | 178 const views::Event& event) { |
| 179 DCHECK_EQ(sender, close_button_); | 179 DCHECK_EQ(close_button_, sender); |
| 180 StartFade(false); | 180 StartFade(false); |
| 181 } | 181 } |
| OLD | NEW |