| 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/browser/extensions/image_loading_tracker.h" | 5 #include "chrome/browser/extensions/image_loading_tracker.h" |
| 6 | 6 |
| 7 #include "base/json/json_file_value_serializer.h" | 7 #include "base/json/json_file_value_serializer.h" |
| 8 #include "base/message_loop.h" | 8 #include "base/message_loop.h" |
| 9 #include "base/path_service.h" | 9 #include "base/path_service.h" |
| 10 #include "chrome/common/chrome_notification_types.h" | 10 #include "chrome/common/chrome_notification_types.h" |
| (...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 | 246 |
| 247 ExtensionResource resource = | 247 ExtensionResource resource = |
| 248 extension->GetIconResource(extension_misc::EXTENSION_ICON_BITTY, | 248 extension->GetIconResource(extension_misc::EXTENSION_ICON_BITTY, |
| 249 ExtensionIconSet::MATCH_EXACTLY); | 249 ExtensionIconSet::MATCH_EXACTLY); |
| 250 | 250 |
| 251 #if defined(FILE_MANAGER_EXTENSION) | 251 #if defined(FILE_MANAGER_EXTENSION) |
| 252 ImageLoadingTracker loader(this); | 252 ImageLoadingTracker loader(this); |
| 253 int resource_id; | 253 int resource_id; |
| 254 ASSERT_EQ(true, | 254 ASSERT_EQ(true, |
| 255 loader.IsComponentExtensionResource(extension.get(), | 255 loader.IsComponentExtensionResource(extension.get(), |
| 256 resource, | 256 resource.relative_path(), |
| 257 resource_id)); | 257 &resource_id)); |
| 258 ASSERT_EQ(IDR_FILE_MANAGER_ICON_16, resource_id); | 258 ASSERT_EQ(IDR_FILE_MANAGER_ICON_16, resource_id); |
| 259 #endif | 259 #endif |
| 260 } | 260 } |
| OLD | NEW |