| 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 1145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1156 | 1156 |
| 1157 void DeveloperPrivateChoosePathFunction::FileSelectionCanceled() { | 1157 void DeveloperPrivateChoosePathFunction::FileSelectionCanceled() { |
| 1158 // This isn't really an error, but we should keep it like this for | 1158 // This isn't really an error, but we should keep it like this for |
| 1159 // backward compatability. | 1159 // backward compatability. |
| 1160 Respond(Error(kFileSelectionCanceled)); | 1160 Respond(Error(kFileSelectionCanceled)); |
| 1161 Release(); | 1161 Release(); |
| 1162 } | 1162 } |
| 1163 | 1163 |
| 1164 DeveloperPrivateChoosePathFunction::~DeveloperPrivateChoosePathFunction() {} | 1164 DeveloperPrivateChoosePathFunction::~DeveloperPrivateChoosePathFunction() {} |
| 1165 | 1165 |
| 1166 bool DeveloperPrivateIsProfileManagedFunction::RunSync() { | 1166 ExtensionFunction::ResponseAction |
| 1167 SetResult( | 1167 DeveloperPrivateIsProfileManagedFunction::Run() { |
| 1168 base::MakeUnique<base::FundamentalValue>(GetProfile()->IsSupervised())); | 1168 return RespondNow(OneArgument(base::MakeUnique<base::FundamentalValue>( |
| 1169 return true; | 1169 Profile::FromBrowserContext(browser_context())->IsSupervised()))); |
| 1170 } | 1170 } |
| 1171 | 1171 |
| 1172 DeveloperPrivateIsProfileManagedFunction:: | 1172 DeveloperPrivateIsProfileManagedFunction:: |
| 1173 ~DeveloperPrivateIsProfileManagedFunction() { | 1173 ~DeveloperPrivateIsProfileManagedFunction() { |
| 1174 } | 1174 } |
| 1175 | 1175 |
| 1176 DeveloperPrivateRequestFileSourceFunction:: | 1176 DeveloperPrivateRequestFileSourceFunction:: |
| 1177 DeveloperPrivateRequestFileSourceFunction() {} | 1177 DeveloperPrivateRequestFileSourceFunction() {} |
| 1178 | 1178 |
| 1179 DeveloperPrivateRequestFileSourceFunction:: | 1179 DeveloperPrivateRequestFileSourceFunction:: |
| (...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1453 update.extension_id, update.command_name, *update.keybinding); | 1453 update.extension_id, update.command_name, *update.keybinding); |
| 1454 } | 1454 } |
| 1455 | 1455 |
| 1456 return RespondNow(NoArguments()); | 1456 return RespondNow(NoArguments()); |
| 1457 } | 1457 } |
| 1458 | 1458 |
| 1459 | 1459 |
| 1460 } // namespace api | 1460 } // namespace api |
| 1461 | 1461 |
| 1462 } // namespace extensions | 1462 } // namespace extensions |
| OLD | NEW |