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

Side by Side Diff: chrome/browser/chromeos/app_mode/certificate_manager_dialog.cc

Issue 1049873005: [chrome/browser/chromeos/] favor DCHECK_CURRENTLY_ON for better logs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/attestation/attestation_policy_observer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/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
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
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/attestation/attestation_policy_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698