OLD | NEW |
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/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
9 #include "chrome/browser/extensions/extension_host.h" | |
10 #include "chrome/browser/profiles/profile.h" | 9 #include "chrome/browser/profiles/profile.h" |
11 #include "chrome/browser/profiles/profile_manager.h" | 10 #include "chrome/browser/profiles/profile_manager.h" |
12 #include "chrome/browser/ui/browser_finder.h" | 11 #include "chrome/browser/ui/browser_finder.h" |
13 #include "chrome/browser/ui/browser_navigator.h" | 12 #include "chrome/browser/ui/browser_navigator.h" |
14 #include "chromeos/network/network_event_log.h" | 13 #include "chromeos/network/network_event_log.h" |
15 #include "chromeos/network/network_state.h" | 14 #include "chromeos/network/network_state.h" |
16 #include "chromeos/network/network_state_handler.h" | 15 #include "chromeos/network/network_state_handler.h" |
17 #include "content/public/common/page_transition_types.h" | 16 #include "content/public/common/page_transition_types.h" |
| 17 #include "extensions/browser/extension_host.h" |
18 #include "extensions/common/constants.h" | 18 #include "extensions/common/constants.h" |
19 #include "grit/generated_resources.h" | 19 #include "grit/generated_resources.h" |
20 #include "ui/base/l10n/l10n_util.h" | 20 #include "ui/base/l10n/l10n_util.h" |
21 #include "ui/views/controls/label.h" | 21 #include "ui/views/controls/label.h" |
22 #include "ui/views/layout/grid_layout.h" | 22 #include "ui/views/layout/grid_layout.h" |
23 #include "ui/views/layout/layout_constants.h" | 23 #include "ui/views/layout/layout_constants.h" |
24 #include "ui/views/widget/widget.h" | 24 #include "ui/views/widget/widget.h" |
25 #include "ui/views/window/dialog_delegate.h" | 25 #include "ui/views/window/dialog_delegate.h" |
26 | 26 |
27 namespace chromeos { | 27 namespace chromeos { |
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
287 ProfileManager::GetPrimaryUserProfile(); | 287 ProfileManager::GetPrimaryUserProfile(); |
288 DialogEnrollmentDelegate* enrollment = | 288 DialogEnrollmentDelegate* enrollment = |
289 new DialogEnrollmentDelegate(owning_window, network->name(), profile); | 289 new DialogEnrollmentDelegate(owning_window, network->name(), profile); |
290 return enrollment->Enroll(certificate_pattern.enrollment_uri_list(), | 290 return enrollment->Enroll(certificate_pattern.enrollment_uri_list(), |
291 base::Bind(&EnrollmentComplete, service_path)); | 291 base::Bind(&EnrollmentComplete, service_path)); |
292 } | 292 } |
293 | 293 |
294 } // namespace enrollment | 294 } // namespace enrollment |
295 | 295 |
296 } // namespace chromeos | 296 } // namespace chromeos |
OLD | NEW |