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

Side by Side Diff: chrome/browser/extensions/image_loading_tracker.cc

Issue 10756018: Merge grd files in ui/resources and chrome/app/theme (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase, *_standard.rc Created 8 years, 5 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/browser/extensions/image_loading_tracker.h" 5 #include "chrome/browser/extensions/image_loading_tracker.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
11 #include "base/file_util.h" 11 #include "base/file_util.h"
12 #include "chrome/browser/ui/webui/extensions/extension_icon_source.h" 12 #include "chrome/browser/ui/webui/extensions/extension_icon_source.h"
13 #include "chrome/common/chrome_notification_types.h" 13 #include "chrome/common/chrome_notification_types.h"
14 #include "chrome/common/extensions/extension.h" 14 #include "chrome/common/extensions/extension.h"
15 #include "chrome/common/extensions/extension_constants.h" 15 #include "chrome/common/extensions/extension_constants.h"
16 #include "chrome/common/extensions/extension_resource.h" 16 #include "chrome/common/extensions/extension_resource.h"
17 #include "content/public/browser/browser_thread.h" 17 #include "content/public/browser/browser_thread.h"
18 #include "content/public/browser/notification_service.h" 18 #include "content/public/browser/notification_service.h"
19 #include "grit/component_extension_resources_map.h" 19 #include "grit/component_extension_resources_map.h"
20 #include "grit/theme_resources.h" 20 #include "grit/theme_resources.h"
21 #include "grit/theme_resources_standard.h"
22 #include "skia/ext/image_operations.h" 21 #include "skia/ext/image_operations.h"
23 #include "third_party/skia/include/core/SkBitmap.h" 22 #include "third_party/skia/include/core/SkBitmap.h"
24 #include "ui/gfx/image/image.h" 23 #include "ui/gfx/image/image.h"
25 #include "ui/gfx/image/image_skia.h" 24 #include "ui/gfx/image/image_skia.h"
26 #include "ui/gfx/image/image_skia_rep.h" 25 #include "ui/gfx/image/image_skia_rep.h"
27 #include "webkit/glue/image_decoder.h" 26 #include "webkit/glue/image_decoder.h"
28 27
29 using content::BrowserThread; 28 using content::BrowserThread;
30 using extensions::Extension; 29 using extensions::Extension;
31 30
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 // Remove reference to this extension from all pending load entries. This 352 // Remove reference to this extension from all pending load entries. This
354 // ensures we don't attempt to cache the image when the load completes. 353 // ensures we don't attempt to cache the image when the load completes.
355 for (LoadMap::iterator i = load_map_.begin(); i != load_map_.end(); ++i) { 354 for (LoadMap::iterator i = load_map_.begin(); i != load_map_.end(); ++i) {
356 PendingLoadInfo* info = &i->second; 355 PendingLoadInfo* info = &i->second;
357 if (info->extension == extension) { 356 if (info->extension == extension) {
358 info->extension = NULL; 357 info->extension = NULL;
359 info->cache = DONT_CACHE; 358 info->cache = DONT_CACHE;
360 } 359 }
361 } 360 }
362 } 361 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_uninstall_dialog.cc ('k') | chrome/browser/extensions/theme_installed_infobar_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698