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

Side by Side 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: missing test for icon factory; need to update comments in browser/ui/ 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 unified diff | Download patch | Annotate | Revision Log
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/common/extensions/extension_icon_set.h" 5 #include "chrome/common/extensions/extension_icon_set.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 8
9 ExtensionIconSet::ExtensionIconSet() {} 9 ExtensionIconSet::ExtensionIconSet() {}
10 10
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 "ExtensionIconSet stores icon paths without leading slash."; 61 "ExtensionIconSet stores icon paths without leading slash.";
62 62
63 for (IconMap::const_iterator iter = map_.begin(); iter != map_.end(); 63 for (IconMap::const_iterator iter = map_.begin(); iter != map_.end();
64 ++iter) { 64 ++iter) {
65 if (iter->second == path) 65 if (iter->second == path)
66 return iter->first; 66 return iter->first;
67 } 67 }
68 68
69 return 0; 69 return 0;
70 } 70 }
71
72 void ExtensionIconSet::CopyForTest(ExtensionIconSet* destination) const {
73 DCHECK(destination);
74 destination->Clear();
75 for (IconMap::const_iterator iter = map_.begin(); iter != map_.end(); ++iter)
76 destination->Add(iter->first, iter->second);
77 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698