diff options
author | estade <estade@chromium.org> | 2016-01-05 14:14:32 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-01-05 22:16:20 +0000 |
commit | 612db46613451f3c0d2ab5a3b0be373f6550d968 (patch) | |
tree | 3c3df137187698332ca1c2e1f02e490be928de54 /extensions/common/manifest_handler_helpers.h | |
parent | d71ea5987a457e8d08b9d722c3022d47c965159f (diff) | |
download | chromium_src-612db46613451f3c0d2ab5a3b0be373f6550d968.zip chromium_src-612db46613451f3c0d2ab5a3b0be373f6550d968.tar.gz chromium_src-612db46613451f3c0d2ab5a3b0be373f6550d968.tar.bz2 |
Manual revert of "Change extension icon load errors to warnings"
This salvages a couple minor changes (tests, mostly), but is largely a
revert of 6e8e7d1c49657e82d0e8f25
BUG=570249
Review URL: https://codereview.chromium.org/1552323002
Cr-Commit-Position: refs/heads/master@{#367667}
Diffstat (limited to 'extensions/common/manifest_handler_helpers.h')
-rw-r--r-- | extensions/common/manifest_handler_helpers.h | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/extensions/common/manifest_handler_helpers.h b/extensions/common/manifest_handler_helpers.h index e1f901a..b0249c3 100644 --- a/extensions/common/manifest_handler_helpers.h +++ b/extensions/common/manifest_handler_helpers.h @@ -6,11 +6,9 @@ #define EXTENSIONS_COMMON_MANIFEST_HANDLER_HELPERS_H_ #include <string> -#include <vector> #include "base/memory/scoped_ptr.h" #include "base/strings/string16.h" -#include "extensions/common/install_warning.h" class ExtensionIconSet; @@ -19,9 +17,6 @@ class DictionaryValue; } namespace extensions { - -class Extension; - namespace manifest_handler_helpers { // Strips leading slashes from the file path. Returns true iff the final path is @@ -30,10 +25,8 @@ bool NormalizeAndValidatePath(std::string* path); // Loads icon paths defined in dictionary |icons_value| into ExtensionIconSet // |icons|. |icons_value| is a dictionary value {icon size -> icon path}. -// Returns success. If load fails, |error| will be set. Non-failure warnings may -// be added to |extension|. -bool LoadIconsFromDictionary(Extension* extension, - const base::DictionaryValue* icons_value, +// Returns success. If load fails, |error| will be set. +bool LoadIconsFromDictionary(const base::DictionaryValue* icons_value, ExtensionIconSet* icons, base::string16* error); |