Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1287)

Unified Diff: chrome/browser/extensions/api/developer_private/developer_private_api.cc

Issue 23460005: Show modal dialog to tell users that the profile is managed when it's the case. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698