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/callback_helpers.h" | 7 #include "base/callback_helpers.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
10 #include "chrome/browser/google/google_util.h" | 10 #include "chrome/browser/google/google_util.h" |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 } | 177 } |
178 | 178 |
179 void OneClickSigninBubbleView::LinkClicked(views::Link* source, | 179 void OneClickSigninBubbleView::LinkClicked(views::Link* source, |
180 int event_flags) { | 180 int event_flags) { |
181 StartFade(false); | 181 StartFade(false); |
182 base::ResetAndReturn(&start_sync_callback_).Run( | 182 base::ResetAndReturn(&start_sync_callback_).Run( |
183 OneClickSigninSyncStarter::CONFIGURE_SYNC_FIRST); | 183 OneClickSigninSyncStarter::CONFIGURE_SYNC_FIRST); |
184 } | 184 } |
185 | 185 |
186 void OneClickSigninBubbleView::ButtonPressed(views::Button* sender, | 186 void OneClickSigninBubbleView::ButtonPressed(views::Button* sender, |
187 const views::Event& event) { | 187 const ui::Event& event) { |
188 StartFade(false); | 188 StartFade(false); |
189 if (ok_button_ == sender) { | 189 if (ok_button_ == sender) { |
190 base::ResetAndReturn(&start_sync_callback_).Run( | 190 base::ResetAndReturn(&start_sync_callback_).Run( |
191 OneClickSigninSyncStarter::SYNC_WITH_DEFAULT_SETTINGS); | 191 OneClickSigninSyncStarter::SYNC_WITH_DEFAULT_SETTINGS); |
192 } else { | 192 } else { |
193 start_sync_callback_.Reset(); | 193 start_sync_callback_.Reset(); |
194 } | 194 } |
195 } | 195 } |
OLD | NEW |