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

Unified Diff: chrome/browser/sync/profile_sync_service_autofill_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/sync/profile_sync_service_autofill_unittest.cc
===================================================================
--- chrome/browser/sync/profile_sync_service_autofill_unittest.cc (revision 91968)
+++ chrome/browser/sync/profile_sync_service_autofill_unittest.cc (working copy)
@@ -41,11 +41,11 @@
#include "chrome/browser/webdata/autofill_entry.h"
#include "chrome/browser/webdata/autofill_table.h"
#include "chrome/browser/webdata/web_database.h"
+#include "chrome/common/chrome_notification_types.h"
#include "chrome/common/net/gaia/gaia_constants.h"
#include "chrome/test/sync/engine/test_id_factory.h"
#include "content/browser/browser_thread.h"
#include "content/common/notification_source.h"
-#include "content/common/notification_type.h"
#include "testing/gmock/include/gmock/gmock.h"
using base::Time;
@@ -871,7 +871,7 @@
AutofillChangeList changes;
changes.push_back(AutofillChange(AutofillChange::ADD, added_entry.key()));
scoped_refptr<ThreadNotifier> notifier(new ThreadNotifier(&db_thread_));
- notifier->Notify(NotificationType::AUTOFILL_ENTRIES_CHANGED,
+ notifier->Notify(chrome::NOTIFICATION_AUTOFILL_ENTRIES_CHANGED,
Source<WebDataService>(web_data_service_.get()),
Details<AutofillChangeList>(&changes));
@@ -900,7 +900,7 @@
AutofillProfileChange change(AutofillProfileChange::ADD,
added_profile.guid(), &added_profile);
scoped_refptr<ThreadNotifier> notifier(new ThreadNotifier(&db_thread_));
- notifier->Notify(NotificationType::AUTOFILL_PROFILE_CHANGED,
+ notifier->Notify(chrome::NOTIFICATION_AUTOFILL_PROFILE_CHANGED,
Source<WebDataService>(web_data_service_.get()),
Details<AutofillProfileChange>(&change));
@@ -934,7 +934,7 @@
changes.push_back(AutofillChange(AutofillChange::UPDATE,
updated_entry.key()));
scoped_refptr<ThreadNotifier> notifier(new ThreadNotifier(&db_thread_));
- notifier->Notify(NotificationType::AUTOFILL_ENTRIES_CHANGED,
+ notifier->Notify(chrome::NOTIFICATION_AUTOFILL_ENTRIES_CHANGED,
Source<WebDataService>(web_data_service_.get()),
Details<AutofillChangeList>(&changes));
@@ -964,7 +964,7 @@
changes.push_back(AutofillChange(AutofillChange::REMOVE,
original_entry.key()));
scoped_refptr<ThreadNotifier> notifier(new ThreadNotifier(&db_thread_));
- notifier->Notify(NotificationType::AUTOFILL_ENTRIES_CHANGED,
+ notifier->Notify(chrome::NOTIFICATION_AUTOFILL_ENTRIES_CHANGED,
Source<WebDataService>(web_data_service_.get()),
Details<AutofillChangeList>(&changes));
@@ -1002,7 +1002,7 @@
AutofillProfileChange change(AutofillProfileChange::REMOVE,
sync_profile.guid(), NULL);
scoped_refptr<ThreadNotifier> notifier(new ThreadNotifier(&db_thread_));
- notifier->Notify(NotificationType::AUTOFILL_PROFILE_CHANGED,
+ notifier->Notify(chrome::NOTIFICATION_AUTOFILL_PROFILE_CHANGED,
Source<WebDataService>(web_data_service_.get()),
Details<AutofillProfileChange>(&change));
@@ -1029,7 +1029,7 @@
changes.push_back(AutofillChange(AutofillChange::ADD,
evil_entry.key()));
scoped_refptr<ThreadNotifier> notifier(new ThreadNotifier(&db_thread_));
- notifier->Notify(NotificationType::AUTOFILL_ENTRIES_CHANGED,
+ notifier->Notify(chrome::NOTIFICATION_AUTOFILL_ENTRIES_CHANGED,
Source<WebDataService>(web_data_service_.get()),
Details<AutofillChangeList>(&changes));
@@ -1041,7 +1041,7 @@
EXPECT_TRUE(service_->unrecoverable_error_detected());
// Ensure future autofill notifications don't crash.
- notifier->Notify(NotificationType::AUTOFILL_ENTRIES_CHANGED,
+ notifier->Notify(chrome::NOTIFICATION_AUTOFILL_ENTRIES_CHANGED,
Source<WebDataService>(web_data_service_.get()),
Details<AutofillChangeList>(&changes));
}
« no previous file with comments | « chrome/browser/sync/profile_sync_service.cc ('k') | chrome/browser/sync/profile_sync_service_password_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698