OLD | NEW |
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/app_mode/certificate_manager_dialog.h" | 5 #include "chrome/browser/chromeos/app_mode/certificate_manager_dialog.h" |
6 | 6 |
7 #include "base/strings/utf_string_conversions.h" | 7 #include "base/strings/utf_string_conversions.h" |
8 #include "chrome/browser/chromeos/login/helper.h" | 8 #include "chrome/browser/chromeos/login/helper.h" |
9 #include "chrome/browser/profiles/profile_manager.h" | 9 #include "chrome/browser/profiles/profile_manager.h" |
10 #include "chrome/browser/ui/browser_dialogs.h" | 10 #include "chrome/browser/ui/browser_dialogs.h" |
(...skipping 25 matching lines...) Expand all Loading... |
36 | 36 |
37 CertificateManagerDialog::CertificateManagerDialog( | 37 CertificateManagerDialog::CertificateManagerDialog( |
38 Profile* profile, | 38 Profile* profile, |
39 LoginWebDialog::Delegate* delegate, | 39 LoginWebDialog::Delegate* delegate, |
40 gfx::NativeWindow window) | 40 gfx::NativeWindow window) |
41 : LoginWebDialog(profile, | 41 : LoginWebDialog(profile, |
42 delegate, | 42 delegate, |
43 window, | 43 window, |
44 base::string16(), | 44 base::string16(), |
45 GURL(chrome::kChromeUICertificateManagerDialogURL)) { | 45 GURL(chrome::kChromeUICertificateManagerDialogURL)) { |
46 DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI)); | 46 DCHECK_CURRENTLY_ON(content::BrowserThread::UI); |
47 | 47 |
48 gfx::Rect screen_bounds(chromeos::CalculateScreenBounds(gfx::Size())); | 48 gfx::Rect screen_bounds(chromeos::CalculateScreenBounds(gfx::Size())); |
49 SetDialogSize(CalculateSize(screen_bounds.width(), | 49 SetDialogSize(CalculateSize(screen_bounds.width(), |
50 kCertificateManagerDialogReasonableWidth, | 50 kCertificateManagerDialogReasonableWidth, |
51 kCertificateManagerDialogReasonableWidthRatio), | 51 kCertificateManagerDialogReasonableWidthRatio), |
52 CalculateSize(screen_bounds.height(), | 52 CalculateSize(screen_bounds.height(), |
53 kCertificateManagerDialogReasonableHeight, | 53 kCertificateManagerDialogReasonableHeight, |
54 kCertificateManagerDialogReasonableHeightRatio)); | 54 kCertificateManagerDialogReasonableHeightRatio)); |
55 | 55 |
56 SetDialogTitle(l10n_util::GetStringUTF16(IDS_CERTIFICATE_MANAGER_TITLE)); | 56 SetDialogTitle(l10n_util::GetStringUTF16(IDS_CERTIFICATE_MANAGER_TITLE)); |
57 } | 57 } |
58 | 58 |
59 CertificateManagerDialog::~CertificateManagerDialog() { | 59 CertificateManagerDialog::~CertificateManagerDialog() { |
60 } | 60 } |
61 | 61 |
62 | 62 |
63 } // namespace chromeos | 63 } // namespace chromeos |
OLD | NEW |