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

Unified Diff: device/devices_app/devices_app.h

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
« no previous file with comments | « content/renderer/mus/render_widget_mus_connection.cc ('k') | device/devices_app/devices_app.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/devices_app/devices_app.h
diff --git a/device/devices_app/devices_app.h b/device/devices_app/devices_app.h
index fb714f8210fa87a7a701d4348087b07bf4b2494a..d2477028412a7117b9a16e57b03b773259d86da7 100644
--- a/device/devices_app/devices_app.h
+++ b/device/devices_app/devices_app.h
@@ -15,7 +15,7 @@
#include "mojo/shell/public/cpp/interface_factory.h"
namespace mojo {
-class ApplicationImpl;
+class Shell;
}
namespace device {
@@ -34,7 +34,9 @@ class DevicesApp : public mojo::ApplicationDelegate,
class USBServiceInitializer;
// mojo::ApplicationDelegate:
- void Initialize(mojo::ApplicationImpl* app) override;
+ void Initialize(mojo::Shell* shell,
+ const std::string& url,
+ uint32_t id) override;
bool AcceptConnection(mojo::ApplicationConnection* connection) override;
void Quit() override;
@@ -50,7 +52,7 @@ class DevicesApp : public mojo::ApplicationDelegate,
// it's canceled.
void StartIdleTimer();
- mojo::ApplicationImpl* app_impl_;
+ mojo::Shell* shell_;
scoped_ptr<USBServiceInitializer> service_initializer_;
size_t active_device_manager_count_;
« no previous file with comments | « content/renderer/mus/render_widget_mus_connection.cc ('k') | device/devices_app/devices_app.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698