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

Side by Side Diff: chrome/browser/ui/views/sync/one_click_signin_bubble_view.cc

Issue 99343006: Merge 237115 "Security fix for untrusted signin confirm dialog" (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1700/src/
Patch Set: Created 7 years 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698