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 <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
10 #include "chrome/browser/ui/browser.h" | 10 #include "chrome/browser/ui/browser.h" |
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
229 explanation_label_, 1, 1, | 229 explanation_label_, 1, 1, |
230 views::GridLayout::FILL, views::GridLayout::FILL, | 230 views::GridLayout::FILL, views::GridLayout::FILL, |
231 kPreferredWidth, explanation_label_->GetHeightForWidth(kPreferredWidth)); | 231 kPreferredWidth, explanation_label_->GetHeightForWidth(kPreferredWidth)); |
232 } | 232 } |
233 | 233 |
234 void ProfileSigninConfirmationDialogViews::StyledLabelLinkClicked( | 234 void ProfileSigninConfirmationDialogViews::StyledLabelLinkClicked( |
235 const gfx::Range& range, | 235 const gfx::Range& range, |
236 int event_flags) { | 236 int event_flags) { |
237 chrome::NavigateParams params( | 237 chrome::NavigateParams params( |
238 browser_, | 238 browser_, |
239 GURL("http://support.google.com/chromeos/bin/answer.py?answer=1331549"), | 239 GURL("https://support.google.com/chromeos/answer/1331549"), |
alexab
2015/05/22 00:08:47
https://support.google.com/chromebook/answer/13315
Dan Beam
2015/05/22 01:08:45
Done.
| |
240 ui::PAGE_TRANSITION_LINK); | 240 ui::PAGE_TRANSITION_LINK); |
241 params.disposition = NEW_POPUP; | 241 params.disposition = NEW_POPUP; |
242 params.window_action = chrome::NavigateParams::SHOW_WINDOW; | 242 params.window_action = chrome::NavigateParams::SHOW_WINDOW; |
243 chrome::Navigate(¶ms); | 243 chrome::Navigate(¶ms); |
244 } | 244 } |
245 | 245 |
246 void ProfileSigninConfirmationDialogViews::ButtonPressed( | 246 void ProfileSigninConfirmationDialogViews::ButtonPressed( |
247 views::Button* sender, | 247 views::Button* sender, |
248 const ui::Event& event) { | 248 const ui::Event& event) { |
249 DCHECK(prompt_for_new_profile_); | 249 DCHECK(prompt_for_new_profile_); |
250 DCHECK_EQ(continue_signin_button_, sender); | 250 DCHECK_EQ(continue_signin_button_, sender); |
251 if (delegate_) { | 251 if (delegate_) { |
252 delegate_->OnContinueSignin(); | 252 delegate_->OnContinueSignin(); |
253 delegate_ = NULL; | 253 delegate_ = NULL; |
254 } | 254 } |
255 GetWidget()->Close(); | 255 GetWidget()->Close(); |
256 } | 256 } |
OLD | NEW |