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

Side by Side Diff: chrome/browser/ui/ash/multi_user/multi_user_warning_dialog.cc

Issue 2881683002: Log the creation of several more dialog box types. (Closed)
Patch Set: fix includes 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/ui/ash/multi_user/multi_user_warning_dialog.h" 5 #include "chrome/browser/ui/ash/multi_user/multi_user_warning_dialog.h"
6 6
7 #include "ash/shell.h" 7 #include "ash/shell.h"
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "chrome/browser/ui/browser_dialogs.h"
9 #include "chrome/grit/generated_resources.h" 10 #include "chrome/grit/generated_resources.h"
10 #include "ui/base/l10n/l10n_util.h" 11 #include "ui/base/l10n/l10n_util.h"
11 #include "ui/base/resource/resource_bundle.h" 12 #include "ui/base/resource/resource_bundle.h"
12 #include "ui/views/border.h" 13 #include "ui/views/border.h"
13 #include "ui/views/controls/button/checkbox.h" 14 #include "ui/views/controls/button/checkbox.h"
14 #include "ui/views/controls/label.h" 15 #include "ui/views/controls/label.h"
15 #include "ui/views/layout/fill_layout.h" 16 #include "ui/views/layout/fill_layout.h"
16 #include "ui/views/layout/layout_constants.h" 17 #include "ui/views/layout/layout_constants.h"
17 #include "ui/views/widget/widget.h" 18 #include "ui/views/widget/widget.h"
18 #include "ui/views/window/dialog_delegate.h" 19 #include "ui/views/window/dialog_delegate.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 53
53 DISALLOW_COPY_AND_ASSIGN(TeleportWarningView); 54 DISALLOW_COPY_AND_ASSIGN(TeleportWarningView);
54 }; 55 };
55 56
56 //////////////////////////////////////////////////////////////////////////////// 57 ////////////////////////////////////////////////////////////////////////////////
57 // TeleportWarningView implementation. 58 // TeleportWarningView implementation.
58 59
59 TeleportWarningView::TeleportWarningView( 60 TeleportWarningView::TeleportWarningView(
60 const base::Callback<void(bool)>& on_accept) 61 const base::Callback<void(bool)>& on_accept)
61 : on_accept_(on_accept) { 62 : on_accept_(on_accept) {
63 chrome::RecordDialogCreation(chrome::DialogIdentifier::TELEPORT_WARNING);
62 } 64 }
63 65
64 TeleportWarningView::~TeleportWarningView() { 66 TeleportWarningView::~TeleportWarningView() {
65 } 67 }
66 68
67 // static 69 // static
68 void TeleportWarningView::ShowDialog( 70 void TeleportWarningView::ShowDialog(
69 const base::Callback<void(bool)>& on_accept) { 71 const base::Callback<void(bool)>& on_accept) {
70 TeleportWarningView* dialog_view = 72 TeleportWarningView* dialog_view =
71 new TeleportWarningView(on_accept); 73 new TeleportWarningView(on_accept);
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 123
122 //////////////////////////////////////////////////////////////////////////////// 124 ////////////////////////////////////////////////////////////////////////////////
123 // Factory function. 125 // Factory function.
124 126
125 void ShowMultiprofilesWarningDialog( 127 void ShowMultiprofilesWarningDialog(
126 const base::Callback<void(bool)>& on_accept) { 128 const base::Callback<void(bool)>& on_accept) {
127 TeleportWarningView::ShowDialog(on_accept); 129 TeleportWarningView::ShowDialog(on_accept);
128 } 130 }
129 131
130 } // namespace chromeos 132 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698