| 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 "apps/app_load_service.h" | 7 #include "apps/app_load_service.h" |
| 8 #include "apps/app_restore_service.h" | 8 #include "apps/app_restore_service.h" |
| 9 #include "apps/app_window.h" | 9 #include "apps/app_window.h" |
| 10 #include "apps/app_window_registry.h" | 10 #include "apps/app_window_registry.h" |
| (...skipping 1300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1311 } | 1311 } |
| 1312 | 1312 |
| 1313 void DeveloperPrivateChoosePathFunction::FileSelectionCanceled() { | 1313 void DeveloperPrivateChoosePathFunction::FileSelectionCanceled() { |
| 1314 SendResponse(false); | 1314 SendResponse(false); |
| 1315 Release(); | 1315 Release(); |
| 1316 } | 1316 } |
| 1317 | 1317 |
| 1318 DeveloperPrivateChoosePathFunction::~DeveloperPrivateChoosePathFunction() {} | 1318 DeveloperPrivateChoosePathFunction::~DeveloperPrivateChoosePathFunction() {} |
| 1319 | 1319 |
| 1320 bool DeveloperPrivateIsProfileManagedFunction::RunSync() { | 1320 bool DeveloperPrivateIsProfileManagedFunction::RunSync() { |
| 1321 SetResult(new base::FundamentalValue(GetProfile()->IsManaged())); | 1321 SetResult(new base::FundamentalValue(GetProfile()->IsSupervised())); |
| 1322 return true; | 1322 return true; |
| 1323 } | 1323 } |
| 1324 | 1324 |
| 1325 DeveloperPrivateIsProfileManagedFunction:: | 1325 DeveloperPrivateIsProfileManagedFunction:: |
| 1326 ~DeveloperPrivateIsProfileManagedFunction() { | 1326 ~DeveloperPrivateIsProfileManagedFunction() { |
| 1327 } | 1327 } |
| 1328 | 1328 |
| 1329 DeveloperPrivateRequestFileSourceFunction:: | 1329 DeveloperPrivateRequestFileSourceFunction:: |
| 1330 DeveloperPrivateRequestFileSourceFunction() {} | 1330 DeveloperPrivateRequestFileSourceFunction() {} |
| 1331 | 1331 |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1374 } | 1374 } |
| 1375 | 1375 |
| 1376 error_ui_util::HandleOpenDevTools(dict); | 1376 error_ui_util::HandleOpenDevTools(dict); |
| 1377 | 1377 |
| 1378 return true; | 1378 return true; |
| 1379 } | 1379 } |
| 1380 | 1380 |
| 1381 } // namespace api | 1381 } // namespace api |
| 1382 | 1382 |
| 1383 } // namespace extensions | 1383 } // namespace extensions |
| OLD | NEW |