Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / password_manager / test_password_store_service.cc
index 3916b6e..209c4ad 100644 (file)
@@ -11,7 +11,8 @@ KeyedService* TestPasswordStoreService::Build(
     content::BrowserContext* /*profile*/) {
   scoped_refptr<password_manager::PasswordStore> store(
       new password_manager::TestPasswordStore);
-  if (!store || !store->Init(syncer::SyncableService::StartSyncFlare(), ""))
+  if (!store.get() ||
+      !store->Init(syncer::SyncableService::StartSyncFlare(), ""))
     return NULL;
   return new TestPasswordStoreService(store);
 }