| 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/options/browser_options_handler.h" | 5 #include "chrome/browser/ui/webui/options/browser_options_handler.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "apps/app_window.h" | 10 #include "apps/app_window.h" |
| (...skipping 757 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 768 registrar_.RemoveAll(); | 768 registrar_.RemoveAll(); |
| 769 #if defined(OS_WIN) | 769 #if defined(OS_WIN) |
| 770 ExtensionRegistry::Get(Profile::FromWebUI(web_ui()))->RemoveObserver(this); | 770 ExtensionRegistry::Get(Profile::FromWebUI(web_ui()))->RemoveObserver(this); |
| 771 #endif | 771 #endif |
| 772 } | 772 } |
| 773 | 773 |
| 774 void BrowserOptionsHandler::OnStateChanged() { | 774 void BrowserOptionsHandler::OnStateChanged() { |
| 775 UpdateSyncState(); | 775 UpdateSyncState(); |
| 776 } | 776 } |
| 777 | 777 |
| 778 void BrowserOptionsHandler::GoogleSigninSucceeded(const std::string& username, | 778 void BrowserOptionsHandler::GoogleSigninSucceeded(const std::string& account_id, |
| 779 const std::string& username, |
| 779 const std::string& password) { | 780 const std::string& password) { |
| 780 OnStateChanged(); | 781 OnStateChanged(); |
| 781 } | 782 } |
| 782 | 783 |
| 783 void BrowserOptionsHandler::GoogleSignedOut(const std::string& username) { | 784 void BrowserOptionsHandler::GoogleSignedOut(const std::string& account_id, |
| 785 const std::string& username) { |
| 784 OnStateChanged(); | 786 OnStateChanged(); |
| 785 } | 787 } |
| 786 | 788 |
| 787 void BrowserOptionsHandler::PageLoadStarted() { | 789 void BrowserOptionsHandler::PageLoadStarted() { |
| 788 page_initialized_ = false; | 790 page_initialized_ = false; |
| 789 } | 791 } |
| 790 | 792 |
| 791 void BrowserOptionsHandler::InitializeHandler() { | 793 void BrowserOptionsHandler::InitializeHandler() { |
| 792 Profile* profile = Profile::FromWebUI(web_ui()); | 794 Profile* profile = Profile::FromWebUI(web_ui()); |
| 793 PrefService* prefs = profile->GetPrefs(); | 795 PrefService* prefs = profile->GetPrefs(); |
| (...skipping 1068 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1862 extension = extensions::GetExtensionOverridingProxy( | 1864 extension = extensions::GetExtensionOverridingProxy( |
| 1863 Profile::FromWebUI(web_ui())); | 1865 Profile::FromWebUI(web_ui())); |
| 1864 AppendExtensionData("proxy", extension, &extension_controlled); | 1866 AppendExtensionData("proxy", extension, &extension_controlled); |
| 1865 | 1867 |
| 1866 web_ui()->CallJavascriptFunction("BrowserOptions.toggleExtensionIndicators", | 1868 web_ui()->CallJavascriptFunction("BrowserOptions.toggleExtensionIndicators", |
| 1867 extension_controlled); | 1869 extension_controlled); |
| 1868 #endif // defined(OS_WIN) | 1870 #endif // defined(OS_WIN) |
| 1869 } | 1871 } |
| 1870 | 1872 |
| 1871 } // namespace options | 1873 } // namespace options |
| OLD | NEW |