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

Unified Diff: chrome/browser/sync/test/integration/sync_arc_package_helper.cc

Issue 2599673005: arc: Use GET_INTERFACE_FOR_METHOD macro (Closed)
Patch Set: Added a conversion I missed Created 3 years, 11 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/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.

Powered by Google App Engine
This is Rietveld 408576698