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

Unified Diff: chrome/browser/resources/apps_debugger/js/items.js

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: merge. 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/resources/apps_debugger/js/items.js
diff --git a/chrome/browser/resources/apps_debugger/js/items.js b/chrome/browser/resources/apps_debugger/js/items.js
index 8d0946429d5362b7a5ead31020231a827cec5d06..5ff959eaed03d15152227f16aeeb1d0d5a8132b0 100644
--- a/chrome/browser/resources/apps_debugger/js/items.js
+++ b/chrome/browser/resources/apps_debugger/js/items.js
@@ -96,6 +96,23 @@ cr.define('apps_dev_tool', function() {
chrome.developerPrivate.getStrings(function(strings) {
loadTimeData.data = strings;
i18nTemplate.process(document, loadTimeData);
+
+ // Check managed profiles.
+ chrome.developerPrivate.isProfileManaged(function(isManaged) {
+ if (!isManaged)
+ return;
+ alertOverlay.setValues(
+ loadTimeData.getString('managedProfileDialogTitle'),
+ loadTimeData.getString('managedProfileDialogDescription'),
+ loadTimeData.getString('managedProfileDialogCloseButton'),
+ null,
+ function() {
+ AppsDevTool.showOverlay(null);
+ window.close();
+ },
+ null);
+ AppsDevTool.showOverlay($('alertOverlay'));
+ });
});
};
« no previous file with comments | « chrome/browser/extensions/extension_function_histogram_value.h ('k') | chrome/common/extensions/api/developer_private.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698