blob: 8031989396b462c714890cbccd356527c0276b36 [file] [log] [blame]
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ash/app_mode/certificate_manager_dialog.h"
#include "base/strings/utf_string_conversions.h"
#include "chrome/browser/ash/login/helper.h"
#include "chrome/browser/profiles/profile_manager.h"
#include "chrome/browser/ui/browser_dialogs.h"
#include "chrome/common/url_constants.h"
#include "chrome/grit/generated_resources.h"
#include "content/public/browser/browser_thread.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/gfx/geometry/rect.h"
#include "ui/gfx/geometry/size.h"
#include "ui/views/controls/webview/web_dialog_view.h"
namespace {
// The width matches the Settings UI width.
const int kDefaultWidth = 640;
const int kDefaultHeight = 480;
} // namespace
namespace ash {
CertificateManagerDialog::CertificateManagerDialog(
Profile* profile,
LoginWebDialog::Delegate* delegate,
gfx::NativeWindow window)
: LoginWebDialog(profile,
delegate,
window,
std::u16string(),
GURL(chrome::kChromeUICertificateManagerDialogURL)) {}
CertificateManagerDialog::~CertificateManagerDialog() {}
std::u16string CertificateManagerDialog::GetDialogTitle() const {
return l10n_util::GetStringUTF16(IDS_CERTIFICATE_MANAGER_TITLE);
}
void CertificateManagerDialog::GetDialogSize(gfx::Size* size) const {
size->SetSize(kDefaultWidth, kDefaultHeight);
}
} // namespace ash