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

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

Issue 2840483002: Log the creation of Sign In related dialog boxes. (Closed)
Patch Set: correct enums in enums.xml Created 3 years, 7 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/signin_email_confirmation_dialog.h" 5 #include "chrome/browser/ui/webui/signin/signin_email_confirmation_dialog.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/json/json_reader.h" 9 #include "base/json/json_reader.h"
10 #include "base/json/json_writer.h" 10 #include "base/json/json_writer.h"
11 #include "base/metrics/user_metrics.h" 11 #include "base/metrics/user_metrics.h"
12 #include "chrome/browser/profiles/profile.h" 12 #include "chrome/browser/profiles/profile.h"
13 #include "chrome/browser/ui/browser_dialogs.h"
13 #include "chrome/browser/ui/webui/signin/signin_email_confirmation_ui.h" 14 #include "chrome/browser/ui/webui/signin/signin_email_confirmation_ui.h"
14 #include "chrome/common/url_constants.h" 15 #include "chrome/common/url_constants.h"
15 #include "chrome/grit/browser_resources.h" 16 #include "chrome/grit/browser_resources.h"
16 #include "chrome/grit/generated_resources.h" 17 #include "chrome/grit/generated_resources.h"
17 #include "content/public/browser/web_contents.h" 18 #include "content/public/browser/web_contents.h"
18 #include "content/public/browser/web_contents_observer.h" 19 #include "content/public/browser/web_contents_observer.h"
19 #include "content/public/browser/web_ui.h" 20 #include "content/public/browser/web_ui.h"
20 #include "content/public/browser/web_ui_message_handler.h" 21 #include "content/public/browser/web_ui_message_handler.h"
21 #include "ui/base/l10n/l10n_util.h" 22 #include "ui/base/l10n/l10n_util.h"
22 23
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 SigninEmailConfirmationDialog::SigninEmailConfirmationDialog( 64 SigninEmailConfirmationDialog::SigninEmailConfirmationDialog(
64 content::WebContents* contents, 65 content::WebContents* contents,
65 Profile* profile, 66 Profile* profile,
66 const std::string& last_email, 67 const std::string& last_email,
67 const std::string& new_email, 68 const std::string& new_email,
68 const Callback& callback) 69 const Callback& callback)
69 : web_contents_(contents), 70 : web_contents_(contents),
70 profile_(profile), 71 profile_(profile),
71 last_email_(last_email), 72 last_email_(last_email),
72 new_email_(new_email), 73 new_email_(new_email),
73 callback_(callback) {} 74 callback_(callback) {
75 chrome::RecordDialogCreation(
76 chrome::DialogIdentifier::SIGN_IN_EMAIL_CONFIRMATION);
77 }
74 78
75 SigninEmailConfirmationDialog::~SigninEmailConfirmationDialog() {} 79 SigninEmailConfirmationDialog::~SigninEmailConfirmationDialog() {}
76 80
77 // static 81 // static
78 void SigninEmailConfirmationDialog::AskForConfirmation( 82 void SigninEmailConfirmationDialog::AskForConfirmation(
79 content::WebContents* contents, 83 content::WebContents* contents,
80 Profile* profile, 84 Profile* profile,
81 const std::string& last_email, 85 const std::string& last_email,
82 const std::string& email, 86 const std::string& email,
83 const Callback& callback) { 87 const Callback& callback) {
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 195
192 void SigninEmailConfirmationDialog::OnCloseContents( 196 void SigninEmailConfirmationDialog::OnCloseContents(
193 content::WebContents* source, 197 content::WebContents* source,
194 bool* out_close_dialog) { 198 bool* out_close_dialog) {
195 *out_close_dialog = true; 199 *out_close_dialog = true;
196 } 200 }
197 201
198 bool SigninEmailConfirmationDialog::ShouldShowDialogTitle() const { 202 bool SigninEmailConfirmationDialog::ShouldShowDialogTitle() const {
199 return false; 203 return false;
200 } 204 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/profiles/profile_chooser_view.cc ('k') | tools/metrics/histograms/enums.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698