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

Unified Diff: chrome/browser/search_engines/template_url_scraper_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
Index: chrome/browser/search_engines/template_url_scraper_unittest.cc
===================================================================
--- chrome/browser/search_engines/template_url_scraper_unittest.cc (revision 91968)
+++ chrome/browser/search_engines/template_url_scraper_unittest.cc (working copy)
@@ -7,11 +7,11 @@
#include "chrome/browser/search_engines/template_url_service_factory.h"
#include "chrome/browser/search_engines/template_url_prepopulate_data.h"
#include "chrome/browser/ui/browser.h"
+#include "chrome/common/chrome_notification_types.h"
#include "chrome/test/in_process_browser_test.h"
#include "chrome/test/ui_test_utils.h"
#include "content/common/notification_registrar.h"
#include "content/common/notification_source.h"
-#include "content/common/notification_type.h"
#include "net/base/mock_host_resolver.h"
#include "net/base/net_util.h"
@@ -28,16 +28,16 @@
class TemplateURLServiceLoader : public NotificationObserver {
public:
explicit TemplateURLServiceLoader(TemplateURLService* model) : model_(model) {
- registrar_.Add(this, NotificationType::TEMPLATE_URL_SERVICE_LOADED,
+ registrar_.Add(this, chrome::NOTIFICATION_TEMPLATE_URL_SERVICE_LOADED,
Source<TemplateURLService>(model));
model_->Load();
ui_test_utils::RunMessageLoop();
}
- virtual void Observe(NotificationType type,
+ virtual void Observe(int type,
const NotificationSource& source,
const NotificationDetails& details) {
- if (type == NotificationType::TEMPLATE_URL_SERVICE_LOADED &&
+ if (type == chrome::NOTIFICATION_TEMPLATE_URL_SERVICE_LOADED &&
Source<TemplateURLService>(source).ptr() == model_) {
MessageLoop::current()->Quit();
}
« no previous file with comments | « chrome/browser/search_engines/template_url_fetcher.cc ('k') | chrome/browser/search_engines/template_url_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698