| OLD | NEW |
| 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2015 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/settings/appearance_handler.h" | 5 #include "chrome/browser/ui/webui/settings/appearance_handler.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 "base/values.h" | 9 #include "base/values.h" |
| 10 #include "chrome/browser/chrome_notification_types.h" | 10 #include "chrome/browser/chrome_notification_types.h" |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 theme_service->UsingDefaultTheme(); | 69 theme_service->UsingDefaultTheme(); |
| 70 return base::FundamentalValue(!is_classic_theme); | 70 return base::FundamentalValue(!is_classic_theme); |
| 71 } | 71 } |
| 72 | 72 |
| 73 void AppearanceHandler::GetResetThemeEnabled(const base::ListValue* args) { | 73 void AppearanceHandler::GetResetThemeEnabled(const base::ListValue* args) { |
| 74 CHECK_EQ(1U, args->GetSize()); | 74 CHECK_EQ(1U, args->GetSize()); |
| 75 const base::Value* callback_id; | 75 const base::Value* callback_id; |
| 76 CHECK(args->Get(0, &callback_id)); | 76 CHECK(args->Get(0, &callback_id)); |
| 77 | 77 |
| 78 base::FundamentalValue enabled(QueryResetThemeEnabledState()); | 78 base::FundamentalValue enabled(QueryResetThemeEnabledState()); |
| 79 CallJavascriptCallback(*callback_id, enabled); | 79 ResolveCallback(*callback_id, enabled); |
| 80 } | 80 } |
| 81 | 81 |
| 82 } // namespace settings | 82 } // namespace settings |
| OLD | NEW |