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

Unified Diff: chrome/browser/extensions/user_script_master_unittest.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/user_script_master.cc ('k') | chrome/browser/external_tab_container_win.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/user_script_master_unittest.cc
===================================================================
--- chrome/browser/extensions/user_script_master_unittest.cc (revision 91968)
+++ chrome/browser/extensions/user_script_master_unittest.cc (working copy)
@@ -12,6 +12,7 @@
#include "base/path_service.h"
#include "base/scoped_temp_dir.h"
#include "base/string_util.h"
+#include "chrome/common/chrome_notification_types.h"
#include "chrome/test/testing_profile.h"
#include "content/browser/browser_thread.h"
#include "content/common/notification_registrar.h"
@@ -33,7 +34,7 @@
ASSERT_TRUE(temp_dir_.CreateUniqueTempDir());
// Register for all user script notifications.
- registrar_.Add(this, NotificationType::USER_SCRIPTS_UPDATED,
+ registrar_.Add(this, chrome::NOTIFICATION_USER_SCRIPTS_UPDATED,
NotificationService::AllSources());
// UserScriptMaster posts tasks to the file thread so make the current
@@ -49,10 +50,10 @@
ui_thread_.reset();
}
- virtual void Observe(NotificationType type,
+ virtual void Observe(int type,
const NotificationSource& source,
const NotificationDetails& details) {
- DCHECK(type == NotificationType::USER_SCRIPTS_UPDATED);
+ DCHECK(type == chrome::NOTIFICATION_USER_SCRIPTS_UPDATED);
shared_memory_ = Details<base::SharedMemory>(details).ptr();
if (MessageLoop::current() == &message_loop_)
« no previous file with comments | « chrome/browser/extensions/user_script_master.cc ('k') | chrome/browser/external_tab_container_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698