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

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

Issue 611983004: Remove unused parameter in LoginWebDialog constructor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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/login/help_app_launcher.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 24 matching lines...) Expand all
35 namespace chromeos { 35 namespace chromeos {
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 LoginWebDialog::STYLE_BUBBLE) {
47 DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI)); 46 DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI));
48 47
49 gfx::Rect screen_bounds(chromeos::CalculateScreenBounds(gfx::Size())); 48 gfx::Rect screen_bounds(chromeos::CalculateScreenBounds(gfx::Size()));
50 SetDialogSize(CalculateSize(screen_bounds.width(), 49 SetDialogSize(CalculateSize(screen_bounds.width(),
51 kCertificateManagerDialogReasonableWidth, 50 kCertificateManagerDialogReasonableWidth,
52 kCertificateManagerDialogReasonableWidthRatio), 51 kCertificateManagerDialogReasonableWidthRatio),
53 CalculateSize(screen_bounds.height(), 52 CalculateSize(screen_bounds.height(),
54 kCertificateManagerDialogReasonableHeight, 53 kCertificateManagerDialogReasonableHeight,
55 kCertificateManagerDialogReasonableHeightRatio)); 54 kCertificateManagerDialogReasonableHeightRatio));
56 55
57 SetDialogTitle(l10n_util::GetStringUTF16(IDS_CERTIFICATE_MANAGER_TITLE)); 56 SetDialogTitle(l10n_util::GetStringUTF16(IDS_CERTIFICATE_MANAGER_TITLE));
58 } 57 }
59 58
60 CertificateManagerDialog::~CertificateManagerDialog() { 59 CertificateManagerDialog::~CertificateManagerDialog() {
61 } 60 }
62 61
63 62
64 } // namespace chromeos 63 } // namespace chromeos
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/help_app_launcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698