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

Side by Side Diff: chrome/browser/ui/webui/extensions/extension_settings_handler.cc

Issue 958803004: [Extensions] Make chrome://extensions use developerPrivate for packing crxs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Win fix Created 5 years, 9 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 unified diff | Download patch
OLDNEW
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/ui/webui/extensions/extension_settings_handler.h" 5 #include "chrome/browser/ui/webui/extensions/extension_settings_handler.h"
6 6
7 #include "apps/app_load_service.h" 7 #include "apps/app_load_service.h"
8 #include "apps/saved_files_service.h" 8 #include "apps/saved_files_service.h"
9 #include "base/auto_reset.h" 9 #include "base/auto_reset.h"
10 #include "base/base64.h" 10 #include "base/base64.h"
(...skipping 618 matching lines...) Expand 10 before | Expand all | Expand 10 after
629 source->AddString("extensionSettingsHideDetails", 629 source->AddString("extensionSettingsHideDetails",
630 l10n_util::GetStringUTF16(IDS_EXTENSIONS_HIDE_DETAILS)); 630 l10n_util::GetStringUTF16(IDS_EXTENSIONS_HIDE_DETAILS));
631 source->AddString("extensionSettingsUpdateRequiredBePolicy", 631 source->AddString("extensionSettingsUpdateRequiredBePolicy",
632 l10n_util::GetStringUTF16( 632 l10n_util::GetStringUTF16(
633 IDS_EXTENSIONS_DISABLED_UPDATE_REQUIRED_BY_POLICY)); 633 IDS_EXTENSIONS_DISABLED_UPDATE_REQUIRED_BY_POLICY));
634 634
635 // TODO(estade): comb through the above strings to find ones no longer used in 635 // TODO(estade): comb through the above strings to find ones no longer used in
636 // uber extensions. 636 // uber extensions.
637 source->AddString("extensionUninstall", 637 source->AddString("extensionUninstall",
638 l10n_util::GetStringUTF16(IDS_EXTENSIONS_UNINSTALL)); 638 l10n_util::GetStringUTF16(IDS_EXTENSIONS_UNINSTALL));
639
640 // Pack Extension Overlay:
641 source->AddString("packExtensionOverlay",
642 l10n_util::GetStringUTF16(IDS_EXTENSION_PACK_DIALOG_TITLE));
643 source->AddString("packExtensionHeading",
644 l10n_util::GetStringUTF16(IDS_EXTENSION_PACK_DIALOG_HEADING));
645 source->AddString("packExtensionCommit",
646 l10n_util::GetStringUTF16(IDS_EXTENSION_PACK_BUTTON));
647 source->AddString("ok", l10n_util::GetStringUTF16(IDS_OK));
648 source->AddString("cancel", l10n_util::GetStringUTF16(IDS_CANCEL));
649 source->AddString("packExtensionRootDir",
650 l10n_util::GetStringUTF16(
651 IDS_EXTENSION_PACK_DIALOG_ROOT_DIRECTORY_LABEL));
652 source->AddString("packExtensionPrivateKey",
653 l10n_util::GetStringUTF16(IDS_EXTENSION_PACK_DIALOG_PRIVATE_KEY_LABEL));
654 source->AddString("packExtensionBrowseButton",
655 l10n_util::GetStringUTF16(IDS_EXTENSION_PACK_DIALOG_BROWSE));
656 source->AddString("packExtensionProceedAnyway",
657 l10n_util::GetStringUTF16(IDS_EXTENSION_PROCEED_ANYWAY));
658 source->AddString("packExtensionWarningTitle",
659 l10n_util::GetStringUTF16(IDS_EXTENSION_PACK_WARNING_TITLE));
660 source->AddString("packExtensionErrorTitle",
661 l10n_util::GetStringUTF16(IDS_EXTENSION_PACK_ERROR_TITLE));
662
639 } 663 }
640 664
641 void ExtensionSettingsHandler::RenderViewDeleted( 665 void ExtensionSettingsHandler::RenderViewDeleted(
642 RenderViewHost* render_view_host) { 666 RenderViewHost* render_view_host) {
643 deleting_rvh_ = render_view_host; 667 deleting_rvh_ = render_view_host;
644 Profile* source_profile = Profile::FromBrowserContext( 668 Profile* source_profile = Profile::FromBrowserContext(
645 render_view_host->GetSiteInstance()->GetBrowserContext()); 669 render_view_host->GetSiteInstance()->GetBrowserContext());
646 if (!Profile::FromWebUI(web_ui())->IsSameProfile(source_profile)) 670 if (!Profile::FromWebUI(web_ui())->IsSameProfile(source_profile))
647 return; 671 return;
648 MaybeUpdateAfterNotification(); 672 MaybeUpdateAfterNotification();
(...skipping 666 matching lines...) Expand 10 before | Expand all | Expand 10 after
1315 } 1339 }
1316 1340
1317 void ExtensionSettingsHandler::OnReinstallComplete( 1341 void ExtensionSettingsHandler::OnReinstallComplete(
1318 bool success, 1342 bool success,
1319 const std::string& error, 1343 const std::string& error,
1320 webstore_install::Result result) { 1344 webstore_install::Result result) {
1321 MaybeUpdateAfterNotification(); 1345 MaybeUpdateAfterNotification();
1322 } 1346 }
1323 1347
1324 } // namespace extensions 1348 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/resources/extensions/pack_extension_overlay.js ('k') | chrome/browser/ui/webui/extensions/extensions_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698