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

Side by Side Diff: chrome/browser/chromeos/external_protocol_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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/external_protocol_dialog.h" 5 #include "chrome/browser/chromeos/external_protocol_dialog.h"
6 6
7 #include "chrome/browser/chromeos/arc/intent_helper/arc_external_protocol_dialog .h" 7 #include "chrome/browser/chromeos/arc/intent_helper/arc_external_protocol_dialog .h"
8 #include "chrome/browser/external_protocol/external_protocol_handler.h" 8 #include "chrome/browser/external_protocol/external_protocol_handler.h"
9 #include "chrome/browser/tab_contents/tab_util.h" 9 #include "chrome/browser/tab_contents/tab_util.h"
10 #include "chrome/browser/ui/browser_dialogs.h"
10 #include "chrome/grit/chromium_strings.h" 11 #include "chrome/grit/chromium_strings.h"
11 #include "chrome/grit/generated_resources.h" 12 #include "chrome/grit/generated_resources.h"
12 #include "components/strings/grit/components_strings.h" 13 #include "components/strings/grit/components_strings.h"
13 #include "content/public/browser/web_contents.h" 14 #include "content/public/browser/web_contents.h"
14 #include "ui/base/l10n/l10n_util.h" 15 #include "ui/base/l10n/l10n_util.h"
15 #include "ui/gfx/text_elider.h" 16 #include "ui/gfx/text_elider.h"
16 #include "ui/views/controls/message_box_view.h" 17 #include "ui/views/controls/message_box_view.h"
17 #include "ui/views/widget/widget.h" 18 #include "ui/views/widget/widget.h"
18 #include "url/gurl.h" 19 #include "url/gurl.h"
19 20
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 message_box_view_ = new views::MessageBoxView(params); 105 message_box_view_ = new views::MessageBoxView(params);
105 106
106 gfx::NativeWindow parent_window; 107 gfx::NativeWindow parent_window;
107 if (web_contents) { 108 if (web_contents) {
108 parent_window = web_contents->GetTopLevelNativeWindow(); 109 parent_window = web_contents->GetTopLevelNativeWindow();
109 } else { 110 } else {
110 // Dialog is top level if we don't have a web_contents associated with us. 111 // Dialog is top level if we don't have a web_contents associated with us.
111 parent_window = NULL; 112 parent_window = NULL;
112 } 113 }
113 views::DialogDelegate::CreateDialogWidget(this, NULL, parent_window)->Show(); 114 views::DialogDelegate::CreateDialogWidget(this, NULL, parent_window)->Show();
115 chrome::RecordDialogCreation(
116 chrome::DialogIdentifier::EXTERNAL_PROTOCOL_CHROMEOS);
114 } 117 }
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/enrollment_dialog_view.cc ('k') | chrome/browser/chromeos/options/network_config_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698