| 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/extensions/api/webstore_private/webstore_private_api.h" | 5 #include "chrome/browser/extensions/api/webstore_private/webstore_private_api.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 637 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 648 } | 648 } |
| 649 | 649 |
| 650 bool is_pending_approval = extensions_prefs->HasDisableReason( | 650 bool is_pending_approval = extensions_prefs->HasDisableReason( |
| 651 params->id, Extension::DISABLE_CUSTODIAN_APPROVAL_REQUIRED); | 651 params->id, Extension::DISABLE_CUSTODIAN_APPROVAL_REQUIRED); |
| 652 | 652 |
| 653 return RespondNow(BuildResponse(is_pending_approval)); | 653 return RespondNow(BuildResponse(is_pending_approval)); |
| 654 } | 654 } |
| 655 | 655 |
| 656 ExtensionFunction::ResponseValue | 656 ExtensionFunction::ResponseValue |
| 657 WebstorePrivateIsPendingCustodianApprovalFunction::BuildResponse(bool result) { | 657 WebstorePrivateIsPendingCustodianApprovalFunction::BuildResponse(bool result) { |
| 658 return OneArgument(base::MakeUnique<base::FundamentalValue>(result)); | 658 return OneArgument(base::MakeUnique<base::Value>(result)); |
| 659 } | 659 } |
| 660 | 660 |
| 661 } // namespace extensions | 661 } // namespace extensions |
| OLD | NEW |