| 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/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
| 10 #include "chrome/browser/google/google_util.h" | 10 #include "chrome/browser/google/google_util.h" |
| (...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 395 | 395 |
| 396 void OneClickSigninBubbleView::WindowClosing() { | 396 void OneClickSigninBubbleView::WindowClosing() { |
| 397 // We have to reset |bubble_view_| here, not in our destructor, because | 397 // We have to reset |bubble_view_| here, not in our destructor, because |
| 398 // we'll be destroyed asynchronously and the shown state will be checked | 398 // we'll be destroyed asynchronously and the shown state will be checked |
| 399 // before then. | 399 // before then. |
| 400 DCHECK_EQ(bubble_view_, this); | 400 DCHECK_EQ(bubble_view_, this); |
| 401 bubble_view_ = NULL; | 401 bubble_view_ = NULL; |
| 402 | 402 |
| 403 if (is_sync_dialog_ && !start_sync_callback_.is_null()) { | 403 if (is_sync_dialog_ && !start_sync_callback_.is_null()) { |
| 404 base::ResetAndReturn(&start_sync_callback_).Run( | 404 base::ResetAndReturn(&start_sync_callback_).Run( |
| 405 OneClickSigninSyncStarter::SYNC_WITH_DEFAULT_SETTINGS); | 405 OneClickSigninSyncStarter::UNDO_SYNC); |
| 406 } | 406 } |
| 407 } | 407 } |
| OLD | NEW |