| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_internals_ui.h" | 5 #include "chrome/browser/ui/webui/signin_internals_ui.h" |
| 6 | 6 |
| 7 #include "base/hash.h" | 7 #include "base/hash.h" |
| 8 #include "chrome/browser/profiles/profile.h" | 8 #include "chrome/browser/profiles/profile.h" |
| 9 #include "chrome/browser/signin/about_signin_internals_factory.h" | 9 #include "chrome/browser/signin/about_signin_internals_factory.h" |
| 10 #include "chrome/common/url_constants.h" | 10 #include "chrome/common/url_constants.h" |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 return false; | 78 return false; |
| 79 } | 79 } |
| 80 | 80 |
| 81 void SignInInternalsUI::OnSigninStateChanged( | 81 void SignInInternalsUI::OnSigninStateChanged( |
| 82 scoped_ptr<base::DictionaryValue> info) { | 82 scoped_ptr<base::DictionaryValue> info) { |
| 83 web_ui()->CallJavascriptFunction( | 83 web_ui()->CallJavascriptFunction( |
| 84 "chrome.signin.onSigninInfoChanged.fire", *info); | 84 "chrome.signin.onSigninInfoChanged.fire", *info); |
| 85 } | 85 } |
| 86 | 86 |
| 87 void SignInInternalsUI::OnCookieAccountsFetched( | 87 void SignInInternalsUI::OnCookieAccountsFetched( |
| 88 scoped_ptr<base::DictionaryValue> info) { | 88 linked_ptr<base::DictionaryValue> info) { |
| 89 web_ui()->CallJavascriptFunction( | 89 web_ui()->CallJavascriptFunction( |
| 90 "chrome.signin.onCookieAccountsFetched.fire", *info); | 90 "chrome.signin.onCookieAccountsFetched.fire", *info); |
| 91 } | 91 } |
| OLD | NEW |