Index: chrome/browser/sync/test/integration/sync_arc_package_helper.cc |
diff --git a/chrome/browser/sync/test/integration/sync_arc_package_helper.cc b/chrome/browser/sync/test/integration/sync_arc_package_helper.cc |
index 7055a910dc77b0289733e96b4e624a5446baa4c4..82747ea1beb604fb4d71c88a3b40e8890dcb7e49 100644 |
--- a/chrome/browser/sync/test/integration/sync_arc_package_helper.cc |
+++ b/chrome/browser/sync/test/integration/sync_arc_package_helper.cc |
@@ -183,9 +183,9 @@ void SyncArcPackageHelper::InstallPackage( |
const mojom::ArcPackageInfo& package) { |
ArcAppListPrefs* arc_app_list_prefs = ArcAppListPrefs::Get(profile); |
DCHECK(arc_app_list_prefs); |
- FakeAppInstance* fake_app_instance = static_cast<FakeAppInstance*>( |
- arc_app_list_prefs->app_instance_holder()->GetInstanceForMethod( |
- "InstallPackage")); |
+ FakeAppInstance* fake_app_instance = |
+ static_cast<FakeAppInstance*>(GET_INSTANCE_FOR_METHOD( |
Yusuke Sato
2017/01/04 19:59:12
(not related to your CL, so no reply needed but..
Luis Héctor Chávez
2017/01/04 20:38:56
It's not. Removed.
|
+ arc_app_list_prefs->app_instance_holder(), InstallPackage)); |
DCHECK(fake_app_instance); |
// After this function, new package should be added to local sync service |
@@ -197,9 +197,9 @@ void SyncArcPackageHelper::UninstallPackage(Profile* profile, |
const std::string& package_name) { |
ArcAppListPrefs* arc_app_list_prefs = ArcAppListPrefs::Get(profile); |
DCHECK(arc_app_list_prefs); |
- FakeAppInstance* fake_app_instance = static_cast<FakeAppInstance*>( |
- arc_app_list_prefs->app_instance_holder()->GetInstanceForMethod( |
- "UninstallPackage")); |
+ FakeAppInstance* fake_app_instance = |
+ static_cast<FakeAppInstance*>(GET_INSTANCE_FOR_METHOD( |
+ arc_app_list_prefs->app_instance_holder(), UnInstallPackage)); |
DCHECK(fake_app_instance); |
// After this function, package should be removed from local sync service |
// and uninstall event should be sent to sync server. |