| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/ui/webui/signin/inline_login_handler_impl.h" | 5 #include "chrome/browser/ui/webui/signin/inline_login_handler_impl.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/strings/string_number_conversions.h" | 10 #include "base/strings/string_number_conversions.h" |
| (...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 215 AboutSigninInternals* about_signin_internals = | 215 AboutSigninInternals* about_signin_internals = |
| 216 AboutSigninInternalsFactory::GetForProfile(profile_); | 216 AboutSigninInternalsFactory::GetForProfile(profile_); |
| 217 about_signin_internals->OnRefreshTokenReceived("Failure"); | 217 about_signin_internals->OnRefreshTokenReceived("Failure"); |
| 218 | 218 |
| 219 base::MessageLoop::current()->DeleteSoon(FROM_HERE, this); | 219 base::MessageLoop::current()->DeleteSoon(FROM_HERE, this); |
| 220 } | 220 } |
| 221 | 221 |
| 222 } // namespace | 222 } // namespace |
| 223 | 223 |
| 224 InlineLoginHandlerImpl::InlineLoginHandlerImpl() | 224 InlineLoginHandlerImpl::InlineLoginHandlerImpl() |
| 225 : weak_factory_(this), | 225 : confirm_untrusted_signin_(false), |
| 226 confirm_untrusted_signin_(false) { | 226 weak_factory_(this) { |
| 227 } | 227 } |
| 228 | 228 |
| 229 InlineLoginHandlerImpl::~InlineLoginHandlerImpl() {} | 229 InlineLoginHandlerImpl::~InlineLoginHandlerImpl() {} |
| 230 | 230 |
| 231 bool InlineLoginHandlerImpl::HandleContextMenu( | 231 bool InlineLoginHandlerImpl::HandleContextMenu( |
| 232 const content::ContextMenuParams& params) { | 232 const content::ContextMenuParams& params) { |
| 233 #ifndef NDEBUG | 233 #ifndef NDEBUG |
| 234 return false; | 234 return false; |
| 235 #else | 235 #else |
| 236 return true; | 236 return true; |
| (...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 451 } | 451 } |
| 452 } | 452 } |
| 453 | 453 |
| 454 if (show_account_management) { | 454 if (show_account_management) { |
| 455 browser->window()->ShowAvatarBubbleFromAvatarButton( | 455 browser->window()->ShowAvatarBubbleFromAvatarButton( |
| 456 BrowserWindow::AVATAR_BUBBLE_MODE_ACCOUNT_MANAGEMENT, | 456 BrowserWindow::AVATAR_BUBBLE_MODE_ACCOUNT_MANAGEMENT, |
| 457 signin::ManageAccountsParams()); | 457 signin::ManageAccountsParams()); |
| 458 } | 458 } |
| 459 } | 459 } |
| 460 } | 460 } |
| OLD | NEW |