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

Side by Side Diff: chrome/browser/chromeos/ui/inline_login_dialog.cc

Issue 777143003: Clean up straggler classes to use embedded signin in page in the new profiles world. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 6 years 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 | « chrome/browser/app_controller_mac.mm ('k') | chrome/browser/signin/signin_browsertest.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/ui/inline_login_dialog.h" 5 #include "chrome/browser/chromeos/ui/inline_login_dialog.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "chrome/browser/signin/signin_promo.h" 9 #include "chrome/browser/signin/signin_promo.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 ModalType InlineLoginDialog::GetDialogModalType() const { 37 ModalType InlineLoginDialog::GetDialogModalType() const {
38 return MODAL_TYPE_SYSTEM; 38 return MODAL_TYPE_SYSTEM;
39 } 39 }
40 40
41 base::string16 InlineLoginDialog::GetDialogTitle() const { 41 base::string16 InlineLoginDialog::GetDialogTitle() const {
42 return base::string16(); 42 return base::string16();
43 } 43 }
44 44
45 GURL InlineLoginDialog::GetDialogContentURL() const { 45 GURL InlineLoginDialog::GetDialogContentURL() const {
46 return GURL(signin::GetPromoURL(signin::SOURCE_AVATAR_BUBBLE_ADD_ACCOUNT, 46 return GURL(signin::GetPromoURL(
47 false /* auto_close */, 47 signin_metrics::SOURCE_AVATAR_BUBBLE_ADD_ACCOUNT,
48 true /* is_constrained */)); 48 false /* auto_close */,
49 true /* is_constrained */));
49 } 50 }
50 51
51 void InlineLoginDialog::GetWebUIMessageHandlers( 52 void InlineLoginDialog::GetWebUIMessageHandlers(
52 std::vector<content::WebUIMessageHandler*>* handlers) const { 53 std::vector<content::WebUIMessageHandler*>* handlers) const {
53 } 54 }
54 55
55 void InlineLoginDialog::GetDialogSize(gfx::Size* size) const { 56 void InlineLoginDialog::GetDialogSize(gfx::Size* size) const {
56 *size = gfx::Size(kGaiaViewWidth, kGaiaViewHeight); 57 *size = gfx::Size(kGaiaViewWidth, kGaiaViewHeight);
57 } 58 }
58 59
(...skipping 13 matching lines...) Expand all
72 bool* out_close_dialog) { 73 bool* out_close_dialog) {
73 if (out_close_dialog) 74 if (out_close_dialog)
74 *out_close_dialog = true; 75 *out_close_dialog = true;
75 } 76 }
76 77
77 bool InlineLoginDialog::ShouldShowDialogTitle() const { 78 bool InlineLoginDialog::ShouldShowDialogTitle() const {
78 return true; 79 return true;
79 } 80 }
80 81
81 } // namespace ui 82 } // namespace ui
OLDNEW
« no previous file with comments | « chrome/browser/app_controller_mac.mm ('k') | chrome/browser/signin/signin_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698