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

Side by Side Diff: chrome/browser/ui/webui/signin/profile_signin_confirmation_dialog.cc

Issue 671653002: Standardize usage of virtual/override/final in chrome/browser/ui/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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/webui/signin/profile_signin_confirmation_dialog.h" 5 #include "chrome/browser/ui/webui/signin/profile_signin_confirmation_dialog.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/json/json_writer.h" 8 #include "base/json/json_writer.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/values.h" 10 #include "base/values.h"
(...skipping 10 matching lines...) Expand all
21 21
22 // ProfileSigninConfirmationHandler -------------------------------------------- 22 // ProfileSigninConfirmationHandler --------------------------------------------
23 23
24 namespace { 24 namespace {
25 25
26 class ProfileSigninConfirmationHandler : public content::WebUIMessageHandler { 26 class ProfileSigninConfirmationHandler : public content::WebUIMessageHandler {
27 public: 27 public:
28 ProfileSigninConfirmationHandler( 28 ProfileSigninConfirmationHandler(
29 const ProfileSigninConfirmationDialog* dialog, 29 const ProfileSigninConfirmationDialog* dialog,
30 ui::ProfileSigninConfirmationDelegate* delegate_); 30 ui::ProfileSigninConfirmationDelegate* delegate_);
31 virtual ~ProfileSigninConfirmationHandler(); 31 ~ProfileSigninConfirmationHandler() override;
32 virtual void RegisterMessages() override; 32 void RegisterMessages() override;
33 33
34 private: 34 private:
35 // content::WebUIMessageHandler implementation. 35 // content::WebUIMessageHandler implementation.
36 void OnCancelButtonClicked(const base::ListValue* args); 36 void OnCancelButtonClicked(const base::ListValue* args);
37 void OnCreateProfileClicked(const base::ListValue* args); 37 void OnCreateProfileClicked(const base::ListValue* args);
38 void OnContinueButtonClicked(const base::ListValue* args); 38 void OnContinueButtonClicked(const base::ListValue* args);
39 39
40 // Weak ptr to parent dialog. 40 // Weak ptr to parent dialog.
41 const ProfileSigninConfirmationDialog* dialog_; 41 const ProfileSigninConfirmationDialog* dialog_;
42 42
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 void ProfileSigninConfirmationDialog::OnCloseContents( 205 void ProfileSigninConfirmationDialog::OnCloseContents(
206 content::WebContents* source, 206 content::WebContents* source,
207 bool* out_close_dialog) { 207 bool* out_close_dialog) {
208 if (out_close_dialog) 208 if (out_close_dialog)
209 *out_close_dialog = true; 209 *out_close_dialog = true;
210 } 210 }
211 211
212 bool ProfileSigninConfirmationDialog::ShouldShowDialogTitle() const { 212 bool ProfileSigninConfirmationDialog::ShouldShowDialogTitle() const {
213 return true; 213 return true;
214 } 214 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698