OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/extensions_ui.h" | 5 #include "chrome/browser/extensions/extensions_ui.h" |
6 | 6 |
7 #include "app/l10n_util.h" | 7 #include "app/l10n_util.h" |
8 #include "app/resource_bundle.h" | 8 #include "app/resource_bundle.h" |
9 #include "base/base64.h" | 9 #include "base/base64.h" |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 691 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
702 MaybeUpdateAfterNotification(); | 702 MaybeUpdateAfterNotification(); |
703 break; | 703 break; |
704 default: | 704 default: |
705 NOTREACHED(); | 705 NOTREACHED(); |
706 } | 706 } |
707 } | 707 } |
708 | 708 |
709 Extension* ExtensionsDOMHandler::GetExtension(const ListValue* args) { | 709 Extension* ExtensionsDOMHandler::GetExtension(const ListValue* args) { |
710 std::string extension_id = WideToASCII(ExtractStringValue(args)); | 710 std::string extension_id = WideToASCII(ExtractStringValue(args)); |
711 CHECK(!extension_id.empty()); | 711 CHECK(!extension_id.empty()); |
712 return extensions_service_->GetExtensionById(extension_id, false); | 712 return extensions_service_->GetExtensionById(extension_id, true); |
713 } | 713 } |
714 | 714 |
715 void ExtensionsDOMHandler::MaybeUpdateAfterNotification() { | 715 void ExtensionsDOMHandler::MaybeUpdateAfterNotification() { |
716 if (!ignore_notifications_ && dom_ui_->tab_contents()) | 716 if (!ignore_notifications_ && dom_ui_->tab_contents()) |
717 HandleRequestExtensionsData(NULL); | 717 HandleRequestExtensionsData(NULL); |
718 deleting_rvh_ = NULL; | 718 deleting_rvh_ = NULL; |
719 } | 719 } |
720 | 720 |
721 static void CreateScriptFileDetailValue( | 721 static void CreateScriptFileDetailValue( |
722 const FilePath& extension_path, const UserScript::FileList& scripts, | 722 const FilePath& extension_path, const UserScript::FileList& scripts, |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
911 // static | 911 // static |
912 RefCountedMemory* ExtensionsUI::GetFaviconResourceBytes() { | 912 RefCountedMemory* ExtensionsUI::GetFaviconResourceBytes() { |
913 return ResourceBundle::GetSharedInstance(). | 913 return ResourceBundle::GetSharedInstance(). |
914 LoadDataResourceBytes(IDR_PLUGIN); | 914 LoadDataResourceBytes(IDR_PLUGIN); |
915 } | 915 } |
916 | 916 |
917 // static | 917 // static |
918 void ExtensionsUI::RegisterUserPrefs(PrefService* prefs) { | 918 void ExtensionsUI::RegisterUserPrefs(PrefService* prefs) { |
919 prefs->RegisterBooleanPref(prefs::kExtensionsUIDeveloperMode, false); | 919 prefs->RegisterBooleanPref(prefs::kExtensionsUIDeveloperMode, false); |
920 } | 920 } |
OLD | NEW |