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

Side by Side Diff: chrome/browser/chromeos/enrollment_dialog_view.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/enrollment_dialog_view.h" 5 #include "chrome/browser/chromeos/enrollment_dialog_view.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
11 #include "chrome/browser/chromeos/profiles/profile_helper.h" 11 #include "chrome/browser/chromeos/profiles/profile_helper.h"
12 #include "chrome/browser/profiles/profile.h" 12 #include "chrome/browser/profiles/profile.h"
13 #include "chrome/browser/profiles/profile_manager.h" 13 #include "chrome/browser/profiles/profile_manager.h"
14 #include "chrome/browser/ui/ash/system_tray_client.h" 14 #include "chrome/browser/ui/ash/system_tray_client.h"
15 #include "chrome/browser/ui/browser_dialogs.h"
15 #include "chrome/browser/ui/browser_finder.h" 16 #include "chrome/browser/ui/browser_finder.h"
16 #include "chrome/browser/ui/browser_navigator.h" 17 #include "chrome/browser/ui/browser_navigator.h"
17 #include "chrome/browser/ui/browser_navigator_params.h" 18 #include "chrome/browser/ui/browser_navigator_params.h"
18 #include "chrome/grit/generated_resources.h" 19 #include "chrome/grit/generated_resources.h"
19 #include "chromeos/login/login_state.h" 20 #include "chromeos/login/login_state.h"
20 #include "chromeos/network/client_cert_util.h" 21 #include "chromeos/network/client_cert_util.h"
21 #include "chromeos/network/managed_network_configuration_handler.h" 22 #include "chromeos/network/managed_network_configuration_handler.h"
22 #include "chromeos/network/network_event_log.h" 23 #include "chromeos/network/network_event_log.h"
23 #include "chromeos/network/network_state.h" 24 #include "chromeos/network/network_state.h"
24 #include "chromeos/network/network_state_handler.h" 25 #include "chromeos/network/network_state_handler.h"
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 EnrollmentDialogView::EnrollmentDialogView(const std::string& network_name, 87 EnrollmentDialogView::EnrollmentDialogView(const std::string& network_name,
87 Profile* profile, 88 Profile* profile,
88 const GURL& target_uri, 89 const GURL& target_uri,
89 const base::Closure& connect) 90 const base::Closure& connect)
90 : accepted_(false), 91 : accepted_(false),
91 network_name_(network_name), 92 network_name_(network_name),
92 profile_(profile), 93 profile_(profile),
93 target_uri_(target_uri), 94 target_uri_(target_uri),
94 connect_(connect), 95 connect_(connect),
95 added_cert_(false) { 96 added_cert_(false) {
97 chrome::RecordDialogCreation(chrome::DialogIdentifier::ENROLLMENT);
96 } 98 }
97 99
98 EnrollmentDialogView::~EnrollmentDialogView() { 100 EnrollmentDialogView::~EnrollmentDialogView() {
99 } 101 }
100 102
101 // static 103 // static
102 void EnrollmentDialogView::ShowDialog(gfx::NativeWindow owning_window, 104 void EnrollmentDialogView::ShowDialog(gfx::NativeWindow owning_window,
103 const std::string& network_name, 105 const std::string& network_name,
104 Profile* profile, 106 Profile* profile,
105 const GURL& target_uri, 107 const GURL& target_uri,
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 335
334 DialogEnrollmentDelegate* enrollment = 336 DialogEnrollmentDelegate* enrollment =
335 new DialogEnrollmentDelegate(owning_window, network->name(), profile); 337 new DialogEnrollmentDelegate(owning_window, network->name(), profile);
336 return enrollment->Enroll(cert_config.pattern.enrollment_uri_list(), 338 return enrollment->Enroll(cert_config.pattern.enrollment_uri_list(),
337 base::Bind(&EnrollmentComplete, network_id)); 339 base::Bind(&EnrollmentComplete, network_id));
338 } 340 }
339 341
340 } // namespace enrollment 342 } // namespace enrollment
341 343
342 } // namespace chromeos 344 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698