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

Unified Diff: chrome/browser/extensions/convert_web_app_browsertest.cc

Issue 7327007: Moving notification types which are chrome specific to a new header file chrome_notification_type... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/extensions/content_script_apitest.cc ('k') | chrome/browser/extensions/crx_installer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/convert_web_app_browsertest.cc
===================================================================
--- chrome/browser/extensions/convert_web_app_browsertest.cc (revision 91968)
+++ chrome/browser/extensions/convert_web_app_browsertest.cc (working copy)
@@ -10,11 +10,11 @@
#include "chrome/common/chrome_switches.h"
#include "chrome/common/extensions/extension.h"
#include "chrome/test/in_process_browser_test.h"
+#include "chrome/common/chrome_notification_types.h"
#include "chrome/test/ui_test_utils.h"
#include "content/common/notification_details.h"
#include "content/common/notification_observer.h"
#include "content/common/notification_registrar.h"
-#include "content/common/notification_type.h"
class ExtensionFromWebAppTest
: public InProcessBrowserTest, public NotificationObserver {
@@ -32,10 +32,10 @@
}
// NotificationObserver
- virtual void Observe(NotificationType type,
+ virtual void Observe(int type,
const NotificationSource& source,
const NotificationDetails& details) {
- if (type == NotificationType::EXTENSION_INSTALLED) {
+ if (type == chrome::NOTIFICATION_EXTENSION_INSTALLED) {
const Extension* extension = Details<const Extension>(details).ptr();
if (extension->id() == expected_extension_id_) {
installed_extension_ = extension;
@@ -51,7 +51,7 @@
false);
NotificationRegistrar registrar;
- registrar.Add(this, NotificationType::EXTENSION_INSTALLED,
+ registrar.Add(this, chrome::NOTIFICATION_EXTENSION_INSTALLED,
NotificationService::AllSources());
expected_extension_id_ = "fnpgoaochgbdfjndakichfafiocjjpmm";
« no previous file with comments | « chrome/browser/extensions/content_script_apitest.cc ('k') | chrome/browser/extensions/crx_installer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698