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

Unified Diff: device/devices_app/devices_apptest.cc

Issue 1674903003: Extract shell methods from ApplicationImpl into a base class, and pass this to Initialize() instead. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mojom
Patch Set: . Created 4 years, 10 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: device/devices_app/devices_apptest.cc
diff --git a/device/devices_app/devices_apptest.cc b/device/devices_app/devices_apptest.cc
index e2d2a33aa72512ed7b887560fc6caedd5f15ffd4..6929e85058bd8da6db8115e7d4a2263516d1731b 100644
--- a/device/devices_app/devices_apptest.cc
+++ b/device/devices_app/devices_apptest.cc
@@ -10,7 +10,6 @@
#include "base/run_loop.h"
#include "device/devices_app/devices_app.h"
#include "device/devices_app/usb/public/interfaces/device_manager.mojom.h"
-#include "mojo/shell/public/cpp/application_impl.h"
#include "mojo/shell/public/cpp/application_test_base.h"
namespace device {
@@ -23,7 +22,7 @@ class DevicesAppTest : public mojo::test::ApplicationTestBase {
void SetUp() override {
ApplicationTestBase::SetUp();
- application_impl()->ConnectToService("mojo:devices", &usb_device_manager_);
+ shell()->ConnectToService("mojo:devices", &usb_device_manager_);
}
usb::DeviceManager* usb_device_manager() { return usb_device_manager_.get(); }
« no previous file with comments | « device/devices_app/devices_app.cc ('k') | mandoline/services/core_services/core_services_application_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698