| 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/developer_private/developer_private_api.
h" | 5 #include "chrome/browser/extensions/api/developer_private/developer_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 1151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1162 // This isn't really an error, but we should keep it like this for | 1162 // This isn't really an error, but we should keep it like this for |
| 1163 // backward compatability. | 1163 // backward compatability. |
| 1164 Respond(Error(kFileSelectionCanceled)); | 1164 Respond(Error(kFileSelectionCanceled)); |
| 1165 Release(); | 1165 Release(); |
| 1166 } | 1166 } |
| 1167 | 1167 |
| 1168 DeveloperPrivateChoosePathFunction::~DeveloperPrivateChoosePathFunction() {} | 1168 DeveloperPrivateChoosePathFunction::~DeveloperPrivateChoosePathFunction() {} |
| 1169 | 1169 |
| 1170 ExtensionFunction::ResponseAction | 1170 ExtensionFunction::ResponseAction |
| 1171 DeveloperPrivateIsProfileManagedFunction::Run() { | 1171 DeveloperPrivateIsProfileManagedFunction::Run() { |
| 1172 return RespondNow(OneArgument(base::MakeUnique<base::FundamentalValue>( | 1172 return RespondNow(OneArgument(base::MakeUnique<base::Value>( |
| 1173 Profile::FromBrowserContext(browser_context())->IsSupervised()))); | 1173 Profile::FromBrowserContext(browser_context())->IsSupervised()))); |
| 1174 } | 1174 } |
| 1175 | 1175 |
| 1176 DeveloperPrivateIsProfileManagedFunction:: | 1176 DeveloperPrivateIsProfileManagedFunction:: |
| 1177 ~DeveloperPrivateIsProfileManagedFunction() { | 1177 ~DeveloperPrivateIsProfileManagedFunction() { |
| 1178 } | 1178 } |
| 1179 | 1179 |
| 1180 DeveloperPrivateRequestFileSourceFunction:: | 1180 DeveloperPrivateRequestFileSourceFunction:: |
| 1181 DeveloperPrivateRequestFileSourceFunction() {} | 1181 DeveloperPrivateRequestFileSourceFunction() {} |
| 1182 | 1182 |
| (...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1457 update.extension_id, update.command_name, *update.keybinding); | 1457 update.extension_id, update.command_name, *update.keybinding); |
| 1458 } | 1458 } |
| 1459 | 1459 |
| 1460 return RespondNow(NoArguments()); | 1460 return RespondNow(NoArguments()); |
| 1461 } | 1461 } |
| 1462 | 1462 |
| 1463 | 1463 |
| 1464 } // namespace api | 1464 } // namespace api |
| 1465 | 1465 |
| 1466 } // namespace extensions | 1466 } // namespace extensions |
| OLD | NEW |