| 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/saved_files_service.h" | 9 #include "apps/saved_files_service.h" |
| 10 #include "apps/shell_window.h" | 10 #include "apps/shell_window.h" |
| (...skipping 1230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1241 // Delete confirmation dialog. | 1241 // Delete confirmation dialog. |
| 1242 SET_STRING("deleteConfirmationDeleteButton", | 1242 SET_STRING("deleteConfirmationDeleteButton", |
| 1243 IDS_APPS_DEVTOOL_DELETE_CONFIRMATION_BUTTON); | 1243 IDS_APPS_DEVTOOL_DELETE_CONFIRMATION_BUTTON); |
| 1244 SET_STRING("deleteConfirmationTitle", | 1244 SET_STRING("deleteConfirmationTitle", |
| 1245 IDS_APPS_DEVTOOL_DELETE_CONFIRMATION_TITLE); | 1245 IDS_APPS_DEVTOOL_DELETE_CONFIRMATION_TITLE); |
| 1246 SET_STRING("deleteConfirmationMessageApp", | 1246 SET_STRING("deleteConfirmationMessageApp", |
| 1247 IDS_APPS_DEVTOOL_DELETE_CONFIRMATION_MESSAGE_APP); | 1247 IDS_APPS_DEVTOOL_DELETE_CONFIRMATION_MESSAGE_APP); |
| 1248 SET_STRING("deleteConfirmationMessageExtension", | 1248 SET_STRING("deleteConfirmationMessageExtension", |
| 1249 IDS_APPS_DEVTOOL_DELETE_CONFIRMATION_MESSAGE_EXTENSION); | 1249 IDS_APPS_DEVTOOL_DELETE_CONFIRMATION_MESSAGE_EXTENSION); |
| 1250 | 1250 |
| 1251 // Dialog when profile is managed. |
| 1252 SET_STRING("managedProfileDialogCloseButton", |
| 1253 IDS_APPS_DEVTOOL_MANAGED_PROFILE_DIALOG_CLOSE_BUTTON); |
| 1254 SET_STRING("managedProfileDialogTitle", |
| 1255 IDS_APPS_DEVTOOL_MANAGED_PROFILE_DIALOG_TITLE); |
| 1256 SET_STRING("managedProfileDialogDescription", |
| 1257 IDS_APPS_DEVTOOL_MANAGED_PROFILE_DIALOG_DESCRIPTION); |
| 1258 |
| 1251 #undef SET_STRING | 1259 #undef SET_STRING |
| 1252 return true; | 1260 return true; |
| 1253 } | 1261 } |
| 1254 | 1262 |
| 1255 DeveloperPrivateGetStringsFunction::~DeveloperPrivateGetStringsFunction() {} | 1263 DeveloperPrivateGetStringsFunction::~DeveloperPrivateGetStringsFunction() {} |
| 1256 | 1264 |
| 1265 bool DeveloperPrivateIsProfileManagedFunction::RunImpl() { |
| 1266 SetResult(new base::FundamentalValue(profile_->IsManaged())); |
| 1267 return true; |
| 1268 } |
| 1269 |
| 1270 DeveloperPrivateIsProfileManagedFunction:: |
| 1271 ~DeveloperPrivateIsProfileManagedFunction() { |
| 1272 } |
| 1273 |
| 1257 } // namespace api | 1274 } // namespace api |
| 1258 | 1275 |
| 1259 } // namespace extensions | 1276 } // namespace extensions |
| OLD | NEW |