| Index: chrome/browser/sync/glue/autofill_data_type_controller_unittest.cc
|
| diff --git a/chrome/browser/sync/glue/autofill_data_type_controller_unittest.cc b/chrome/browser/sync/glue/autofill_data_type_controller_unittest.cc
|
| index c635e6a77119ddf385c7eee17d06428d3ee420f0..ca7aaacd36959bbbc694e1f8fa67c2fdabd8b62c 100644
|
| --- a/chrome/browser/sync/glue/autofill_data_type_controller_unittest.cc
|
| +++ b/chrome/browser/sync/glue/autofill_data_type_controller_unittest.cc
|
| @@ -37,25 +37,18 @@ using testing::_;
|
| using testing::NiceMock;
|
| using testing::Return;
|
|
|
| -// Fake WebDataService implementation that stubs out the database
|
| -// loading.
|
| +// Fake WebDataService implementation that stubs out the database loading.
|
| class FakeWebDataService : public WebDataService {
|
| public:
|
| FakeWebDataService()
|
| : WebDataService(NULL),
|
| is_database_loaded_(false) {}
|
|
|
| - // Mark the database as loaded and send out the appropriate
|
| - // notification.
|
| + // Mark the database as loaded and send out the appropriate notification.
|
| void LoadDatabase() {
|
| StartSyncableService();
|
| is_database_loaded_ = true;
|
| - // TODO(akalin): Expose WDS::NotifyDatabaseLoadedOnUIThread() and
|
| - // use that instead of sending this notification manually.
|
| - content::NotificationService::current()->Notify(
|
| - chrome::NOTIFICATION_WEB_DATABASE_LOADED,
|
| - content::Source<WebDataService>(this),
|
| - content::NotificationService::NoDetails());
|
| + NotifyDatabaseLoadedOnUIThread();
|
| }
|
|
|
| virtual bool IsDatabaseLoaded() OVERRIDE {
|
|
|