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

Unified Diff: chrome/common/extensions/extension_icon_set.cc

Issue 10905005: Change browser/page action default icon defined in manifest to support hidpi. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: forgot to update tests Created 8 years, 3 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/common/extensions/extension_icon_set.cc
diff --git a/chrome/common/extensions/extension_icon_set.cc b/chrome/common/extensions/extension_icon_set.cc
index bb8c763df38469d923a295e6b04e27d47f80abff..aa71421163900be569bb6a71a6284742398a988e 100644
--- a/chrome/common/extensions/extension_icon_set.cc
+++ b/chrome/common/extensions/extension_icon_set.cc
@@ -68,3 +68,10 @@ int ExtensionIconSet::GetIconSizeFromPath(const std::string& path) const {
return 0;
}
+
+void ExtensionIconSet::CopyForTest(ExtensionIconSet* destination) const {
+ DCHECK(destination);
+ destination->Clear();
+ for (IconMap::const_iterator iter = map_.begin(); iter != map_.end(); ++iter)
+ destination->Add(iter->first, iter->second);
+}

Powered by Google App Engine
This is Rietveld 408576698