Index: chrome/common/extensions/extension_file_util.cc |
=================================================================== |
--- chrome/common/extensions/extension_file_util.cc (revision 115368) |
+++ chrome/common/extensions/extension_file_util.cc (working copy) |
@@ -24,7 +24,6 @@ |
#include "chrome/common/extensions/extension_message_bundle.h" |
#include "chrome/common/extensions/extension_messages.h" |
#include "chrome/common/extensions/extension_resource.h" |
-#include "chrome/common/extensions/extension_sidebar_defaults.h" |
#include "grit/generated_resources.h" |
#include "net/base/escape.h" |
#include "net/base/file_stream.h" |
@@ -320,21 +319,6 @@ |
} |
} |
- // Validate sidebar default page location. |
- ExtensionSidebarDefaults* sidebar_defaults = extension->sidebar_defaults(); |
- if (sidebar_defaults && sidebar_defaults->default_page().is_valid()) { |
- FilePath page_path = ExtensionURLToRelativeFilePath( |
- sidebar_defaults->default_page()); |
- const FilePath path = extension->GetResource(page_path).GetFilePath(); |
- if (path.empty() || !file_util::PathExists(path)) { |
- *error = |
- l10n_util::GetStringFUTF8( |
- IDS_EXTENSION_LOAD_SIDEBAR_PAGE_FAILED, |
- page_path.LossyDisplayName()); |
- return false; |
- } |
- } |
- |
// Validate locale info. |
if (!ValidateLocaleInfo(*extension, error)) |
return false; |