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

Unified Diff: chrome/browser/chromeos/ui/inline_login_dialog.cc

Issue 1457683002: Remove Chrome OS Mirror UI. Part 2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/chromeos/ui/inline_login_dialog.h ('k') | chrome/chrome_browser_chromeos.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/ui/inline_login_dialog.cc
diff --git a/chrome/browser/chromeos/ui/inline_login_dialog.cc b/chrome/browser/chromeos/ui/inline_login_dialog.cc
deleted file mode 100644
index 35548a1e767146a36708474390263714332eb313..0000000000000000000000000000000000000000
--- a/chrome/browser/chromeos/ui/inline_login_dialog.cc
+++ /dev/null
@@ -1,81 +0,0 @@
-// 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/chromeos/ui/inline_login_dialog.h"
-
-#include "base/bind.h"
-#include "base/logging.h"
-#include "chrome/browser/signin/signin_promo.h"
-#include "chrome/browser/ui/browser_dialogs.h"
-#include "content/public/browser/web_contents.h"
-#include "ui/views/controls/webview/webview.h"
-#include "ui/views/layout/box_layout.h"
-#include "ui/views/widget/widget.h"
-
-namespace {
-
-const int kGaiaViewHeight = 400;
-const int kGaiaViewWidth = 360;
-
-} // namespace
-
-namespace ui {
-
-// static
-void InlineLoginDialog::Show(content::BrowserContext* context) {
- InlineLoginDialog* dialog = new InlineLoginDialog();
- chrome::ShowWebDialog(NULL, context, dialog);
-}
-
-InlineLoginDialog::InlineLoginDialog() {
-}
-
-InlineLoginDialog::~InlineLoginDialog() {
-}
-
-ModalType InlineLoginDialog::GetDialogModalType() const {
- return MODAL_TYPE_SYSTEM;
-}
-
-base::string16 InlineLoginDialog::GetDialogTitle() const {
- return base::string16();
-}
-
-GURL InlineLoginDialog::GetDialogContentURL() const {
- return GURL(signin::GetPromoURL(
- signin_metrics::SOURCE_AVATAR_BUBBLE_ADD_ACCOUNT,
- false /* auto_close */,
- true /* is_constrained */));
-}
-
-void InlineLoginDialog::GetWebUIMessageHandlers(
- std::vector<content::WebUIMessageHandler*>* handlers) const {
-}
-
-void InlineLoginDialog::GetDialogSize(gfx::Size* size) const {
- *size = gfx::Size(kGaiaViewWidth, kGaiaViewHeight);
-}
-
-std::string InlineLoginDialog::GetDialogArgs() const {
- return "";
-}
-
-bool InlineLoginDialog::CanResizeDialog() const {
- return false;
-}
-
-void InlineLoginDialog::OnDialogClosed(const std::string& json_retval) {
- delete this;
-}
-
-void InlineLoginDialog::OnCloseContents(content::WebContents* source,
- bool* out_close_dialog) {
- *out_close_dialog = true;
-}
-
-bool InlineLoginDialog::ShouldShowDialogTitle() const {
- return true;
-}
-
-} // namespace ui
« no previous file with comments | « chrome/browser/chromeos/ui/inline_login_dialog.h ('k') | chrome/chrome_browser_chromeos.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698