Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/dom_ui/options/personal_options_handler.h" | 5 #include "chrome/browser/dom_ui/options/personal_options_handler.h" |
| 6 | 6 |
| 7 #include <string> | |
| 8 | |
| 7 #include "app/l10n_util.h" | 9 #include "app/l10n_util.h" |
| 8 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 9 #include "base/callback.h" | 11 #include "base/callback.h" |
| 10 #include "base/path_service.h" | 12 #include "base/path_service.h" |
| 11 #include "base/stl_util-inl.h" | 13 #include "base/stl_util-inl.h" |
| 12 #include "base/utf_string_conversions.h" | 14 #include "base/utf_string_conversions.h" |
| 13 #include "base/values.h" | 15 #include "base/values.h" |
| 14 #include "build/build_config.h" | 16 #include "build/build_config.h" |
| 15 #include "chrome/browser/browser_list.h" | 17 #include "chrome/browser/browser_list.h" |
| 16 #include "chrome/browser/browser_process.h" | |
| 17 #if defined(OS_CHROMEOS) | 18 #if defined(OS_CHROMEOS) |
| 18 #include "chrome/browser/chromeos/login/user_manager.h" | 19 #include "chrome/browser/chromeos/login/user_manager.h" |
| 19 #endif | 20 #endif |
|
James Hawkins
2010/12/05 17:58:47
#endif // defined(OS_CHROMEOS)
Lei Zhang
2010/12/05 20:14:49
Done.
| |
| 20 #include "chrome/browser/dom_ui/options/options_managed_banner_handler.h" | 21 #include "chrome/browser/dom_ui/options/options_managed_banner_handler.h" |
| 21 #if defined(TOOLKIT_GTK) | 22 #if defined(TOOLKIT_GTK) |
| 22 #include "chrome/browser/gtk/gtk_theme_provider.h" | 23 #include "chrome/browser/gtk/gtk_theme_provider.h" |
| 23 #endif // defined(TOOLKIT_GTK) | 24 #endif // defined(TOOLKIT_GTK) |
| 24 #include "chrome/browser/profiles/profile.h" | 25 #include "chrome/browser/profiles/profile.h" |
| 25 #include "chrome/browser/profiles/profile_manager.h" | 26 #include "chrome/browser/profiles/profile_manager.h" |
| 26 #include "chrome/browser/sync/profile_sync_service.h" | 27 #include "chrome/browser/sync/profile_sync_service.h" |
| 27 #include "chrome/browser/sync/sync_ui_util.h" | 28 #include "chrome/browser/sync/sync_ui_util.h" |
| 28 #include "chrome/browser/themes/browser_theme_provider.h" | 29 #include "chrome/browser/themes/browser_theme_provider.h" |
| 29 #include "chrome/browser/ui/options/options_page_base.h" | 30 #include "chrome/browser/ui/options/options_page_base.h" |
| (...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 281 #endif | 282 #endif |
| 282 | 283 |
| 283 void PersonalOptionsHandler::OnLoginSuccess() { | 284 void PersonalOptionsHandler::OnLoginSuccess() { |
| 284 OnStateChanged(); | 285 OnStateChanged(); |
| 285 } | 286 } |
| 286 | 287 |
| 287 void PersonalOptionsHandler::OnLoginFailure( | 288 void PersonalOptionsHandler::OnLoginFailure( |
| 288 const GoogleServiceAuthError& error) { | 289 const GoogleServiceAuthError& error) { |
| 289 OnStateChanged(); | 290 OnStateChanged(); |
| 290 } | 291 } |
| OLD | NEW |