| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/profile_signin_confirmation_dialog_views.
h" | 5 #include "chrome/browser/ui/views/sync/profile_signin_confirmation_dialog_views.
h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 | 10 |
| (...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 228 } | 228 } |
| 229 | 229 |
| 230 void ProfileSigninConfirmationDialogViews::StyledLabelLinkClicked( | 230 void ProfileSigninConfirmationDialogViews::StyledLabelLinkClicked( |
| 231 views::StyledLabel* label, | 231 views::StyledLabel* label, |
| 232 const gfx::Range& range, | 232 const gfx::Range& range, |
| 233 int event_flags) { | 233 int event_flags) { |
| 234 chrome::NavigateParams params( | 234 chrome::NavigateParams params( |
| 235 browser_, | 235 browser_, |
| 236 GURL("https://support.google.com/chromebook/answer/1331549"), | 236 GURL("https://support.google.com/chromebook/answer/1331549"), |
| 237 ui::PAGE_TRANSITION_LINK); | 237 ui::PAGE_TRANSITION_LINK); |
| 238 params.disposition = NEW_POPUP; | 238 params.disposition = WindowOpenDisposition::NEW_POPUP; |
| 239 params.window_action = chrome::NavigateParams::SHOW_WINDOW; | 239 params.window_action = chrome::NavigateParams::SHOW_WINDOW; |
| 240 chrome::Navigate(¶ms); | 240 chrome::Navigate(¶ms); |
| 241 } | 241 } |
| 242 | 242 |
| 243 void ProfileSigninConfirmationDialogViews::ButtonPressed( | 243 void ProfileSigninConfirmationDialogViews::ButtonPressed( |
| 244 views::Button* sender, | 244 views::Button* sender, |
| 245 const ui::Event& event) { | 245 const ui::Event& event) { |
| 246 DCHECK(prompt_for_new_profile_); | 246 DCHECK(prompt_for_new_profile_); |
| 247 if (delegate_) { | 247 if (delegate_) { |
| 248 delegate_->OnContinueSignin(); | 248 delegate_->OnContinueSignin(); |
| 249 delegate_ = NULL; | 249 delegate_ = NULL; |
| 250 } | 250 } |
| 251 GetWidget()->Close(); | 251 GetWidget()->Close(); |
| 252 } | 252 } |
| OLD | NEW |