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/chromeos/profiles/multiprofiles_session_aborted_dialog.cc

Issue 2881683002: Log the creation of several more dialog box types. (Closed)
Patch Set: Fix alphabetization errors. 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/chromeos/profiles/multiprofiles_session_aborted_dialog. h" 5 #include "chrome/browser/chromeos/profiles/multiprofiles_session_aborted_dialog. h"
6 6
7 #include "ash/root_window_controller.h" 7 #include "ash/root_window_controller.h"
8 #include "ash/shelf/wm_shelf.h" 8 #include "ash/shelf/wm_shelf.h"
9 #include "ash/shell.h" 9 #include "ash/shell.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/strings/utf_string_conversions.h" 11 #include "base/strings/utf_string_conversions.h"
12 #include "chrome/browser/lifetime/application_lifetime.h" 12 #include "chrome/browser/lifetime/application_lifetime.h"
13 #include "chrome/browser/ui/browser_dialogs.h"
13 #include "chrome/grit/generated_resources.h" 14 #include "chrome/grit/generated_resources.h"
14 #include "ui/base/l10n/l10n_util.h" 15 #include "ui/base/l10n/l10n_util.h"
15 #include "ui/base/resource/resource_bundle.h" 16 #include "ui/base/resource/resource_bundle.h"
16 #include "ui/views/border.h" 17 #include "ui/views/border.h"
17 #include "ui/views/controls/button/checkbox.h" 18 #include "ui/views/controls/button/checkbox.h"
18 #include "ui/views/controls/label.h" 19 #include "ui/views/controls/label.h"
19 #include "ui/views/layout/grid_layout.h" 20 #include "ui/views/layout/grid_layout.h"
20 #include "ui/views/widget/widget.h" 21 #include "ui/views/widget/widget.h"
21 #include "ui/views/window/dialog_delegate.h" 22 #include "ui/views/window/dialog_delegate.h"
22 23
(...skipping 30 matching lines...) Expand all
53 private: 54 private:
54 void InitDialog(const std::string& user_email); 55 void InitDialog(const std::string& user_email);
55 56
56 DISALLOW_COPY_AND_ASSIGN(MultiprofilesSessionAbortedView); 57 DISALLOW_COPY_AND_ASSIGN(MultiprofilesSessionAbortedView);
57 }; 58 };
58 59
59 //////////////////////////////////////////////////////////////////////////////// 60 ////////////////////////////////////////////////////////////////////////////////
60 // MultiprofilesSessionAbortedView implementation. 61 // MultiprofilesSessionAbortedView implementation.
61 62
62 MultiprofilesSessionAbortedView::MultiprofilesSessionAbortedView() { 63 MultiprofilesSessionAbortedView::MultiprofilesSessionAbortedView() {
64 chrome::RecordDialogCreation(
65 chrome::DialogIdentifier::MULTIPROFILES_SESSION_ABORTED);
63 } 66 }
64 67
65 MultiprofilesSessionAbortedView::~MultiprofilesSessionAbortedView() { 68 MultiprofilesSessionAbortedView::~MultiprofilesSessionAbortedView() {
66 } 69 }
67 70
68 // static 71 // static
69 void MultiprofilesSessionAbortedView::ShowDialog( 72 void MultiprofilesSessionAbortedView::ShowDialog(
70 const std::string& user_email) { 73 const std::string& user_email) {
71 MultiprofilesSessionAbortedView* dialog_view = 74 MultiprofilesSessionAbortedView* dialog_view =
72 new MultiprofilesSessionAbortedView(); 75 new MultiprofilesSessionAbortedView();
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 } // namespace 155 } // namespace
153 156
154 //////////////////////////////////////////////////////////////////////////////// 157 ////////////////////////////////////////////////////////////////////////////////
155 // Factory function. 158 // Factory function.
156 159
157 void ShowMultiprofilesSessionAbortedDialog(const std::string& user_email) { 160 void ShowMultiprofilesSessionAbortedDialog(const std::string& user_email) {
158 MultiprofilesSessionAbortedView::ShowDialog(user_email); 161 MultiprofilesSessionAbortedView::ShowDialog(user_email);
159 } 162 }
160 163
161 } // namespace chromeos 164 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/profiles/multiprofiles_intro_dialog.cc ('k') | chrome/browser/chromeos/ui/echo_dialog_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698