Chromium Code Reviews| Index: chrome/browser/extensions/api/developer_private/developer_private_api.cc |
| diff --git a/chrome/browser/extensions/api/developer_private/developer_private_api.cc b/chrome/browser/extensions/api/developer_private/developer_private_api.cc |
| index e1fd58b5d5e756132f0b5e51386fb5bd6e950a21..84cbe74b83551b15e8cff1f6e03fbab2ce9f1a43 100644 |
| --- a/chrome/browser/extensions/api/developer_private/developer_private_api.cc |
| +++ b/chrome/browser/extensions/api/developer_private/developer_private_api.cc |
| @@ -129,6 +129,7 @@ namespace Inspect = api::developer_private::Inspect; |
| namespace PackDirectory = api::developer_private::PackDirectory; |
| namespace Reload = api::developer_private::Reload; |
| namespace Restart = api::developer_private::Restart; |
| +namespace IsManager = api::developer_private::Restart; |
|
xiyuan
2013/08/27 17:02:34
A few issues:
- IsManager = ...::Restart?
- Should
dvh
2013/08/27 17:51:06
I'm removing it.
|
| DeveloperPrivateAPI* DeveloperPrivateAPI::Get(Profile* profile) { |
| return DeveloperPrivateAPIFactory::GetForProfile(profile); |
| @@ -1267,12 +1268,29 @@ bool DeveloperPrivateGetStringsFunction::RunImpl() { |
| SET_STRING("deleteConfirmationMessageExtension", |
| IDS_APPS_DEVTOOL_DELETE_CONFIRMATION_MESSAGE_EXTENSION); |
| +// Dialog when profile is managed. |
| + SET_STRING("managedProfileDialogCloseButton", |
| + IDS_APPS_DEVTOOL_MANAGED_PROFILE_DIALOG_CLOSE_BUTTON); |
| + SET_STRING("managedProfileDialogTitle", |
| + IDS_APPS_DEVTOOL_MANAGED_PROFILE_DIALOG_TITLE); |
| + SET_STRING("managedProfileDialogDescription", |
| + IDS_APPS_DEVTOOL_MANAGED_PROFILE_DIALOG_DESCRIPTION); |
| + |
| #undef SET_STRING |
| return true; |
| } |
| DeveloperPrivateGetStringsFunction::~DeveloperPrivateGetStringsFunction() {} |
| +bool DeveloperPrivateIsProfileManagedFunction::RunImpl() { |
| + SetResult(new base::FundamentalValue(profile_->IsManaged())); |
| + return true; |
| +} |
| + |
| +DeveloperPrivateIsProfileManagedFunction:: |
| + ~DeveloperPrivateIsProfileManagedFunction() { |
| +} |
| + |
| } // namespace api |
| } // namespace extensions |