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

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

Issue 10084030: views: Fix some DCHECKs to use (expected, actual) order. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: peter review -> revert one case Created 8 years, 8 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 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/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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/infobars/extension_infobar.cc ('k') | chrome/browser/ui/views/task_manager_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698