summaryrefslogtreecommitdiffstats
path: root/extensions/browser/extension_icon_image.cc
diff options
context:
space:
mode:
authorjamescook@chromium.org <jamescook@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-07-31 12:44:06 +0000
committerjamescook@chromium.org <jamescook@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-07-31 12:44:06 +0000
commitadf5a10eeb5dc230f27d3b1344f2111bdfcd97d6 (patch)
tree8ba5fbfcb3ddaa54355fa3b03cbdcadcbc6d875d /extensions/browser/extension_icon_image.cc
parent248ee9be3db637800a1bf7b13817df43f904248b (diff)
downloadchromium_src-adf5a10eeb5dc230f27d3b1344f2111bdfcd97d6.zip
chromium_src-adf5a10eeb5dc230f27d3b1344f2111bdfcd97d6.tar.gz
chromium_src-adf5a10eeb5dc230f27d3b1344f2111bdfcd97d6.tar.bz2
Move extension notifications to extensions/browser/notification_types.h
As part of the extensions module refactor we temporarily allowed the use of chrome_notification_types.h in src/extensions. However, this allowed code moving into src/extensions to listen to notifications from Chrome, which was a layering violation. This CL moves all the extensions notifications into their own header and cleans up DEPS to disallow the exception. BUG=392622 TEST=compiles, unit_tests, browser_tests, extensions_unittests TBR=miket@chromium.org for apps/ Review URL: https://codereview.chromium.org/425303002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@286770 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'extensions/browser/extension_icon_image.cc')
-rw-r--r--extensions/browser/extension_icon_image.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/extensions/browser/extension_icon_image.cc b/extensions/browser/extension_icon_image.cc
index 99473b1..e2c7e13 100644
--- a/extensions/browser/extension_icon_image.cc
+++ b/extensions/browser/extension_icon_image.cc
@@ -7,9 +7,9 @@
#include <vector>
#include "base/bind.h"
-#include "chrome/browser/chrome_notification_types.h"
#include "content/public/browser/notification_service.h"
#include "extensions/browser/image_loader.h"
+#include "extensions/browser/notification_types.h"
#include "extensions/common/extension.h"
#include "ui/gfx/canvas.h"
#include "ui/gfx/image/canvas_image_source.h"
@@ -150,7 +150,7 @@ IconImage::IconImage(
image_skia_ = gfx::ImageSkia(source_, resource_size);
registrar_.Add(this,
- chrome::NOTIFICATION_EXTENSION_REMOVED,
+ extensions::NOTIFICATION_EXTENSION_REMOVED,
content::NotificationService::AllSources());
}
@@ -228,7 +228,7 @@ void IconImage::OnImageLoaded(float scale, const gfx::Image& image_in) {
void IconImage::Observe(int type,
const content::NotificationSource& source,
const content::NotificationDetails& details) {
- DCHECK_EQ(type, chrome::NOTIFICATION_EXTENSION_REMOVED);
+ DCHECK_EQ(type, extensions::NOTIFICATION_EXTENSION_REMOVED);
const Extension* extension = content::Details<const Extension>(details).ptr();