| OLD | NEW |
| 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 "extensions/common/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 |
| 11 ExtensionIconSet::~ExtensionIconSet() {} | 11 ExtensionIconSet::~ExtensionIconSet() {} |
| 12 | 12 |
| 13 void ExtensionIconSet::Clear() { | 13 void ExtensionIconSet::Clear() { |
| 14 map_.clear(); | 14 map_.clear(); |
| 15 } | 15 } |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 } |
| OLD | NEW |