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

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

Issue 2248873002: Convert WindowOpenDisposition to an enum class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 3 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
OLDNEW
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
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(&params); 240 chrome::Navigate(&params);
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 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/session_crashed_bubble_view.cc ('k') | chrome/browser/ui/views/tabs/browser_tab_strip_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698