Index: mojo/services/native_viewport/main.cc |
diff --git a/mojo/services/native_viewport/main.cc b/mojo/services/native_viewport/main.cc |
index 7db47051b667e846add5e10e683d2828f435ec87..3271cc438f6543f452bba14b3a0c3fb4b299bcda 100644 |
--- a/mojo/services/native_viewport/main.cc |
+++ b/mojo/services/native_viewport/main.cc |
@@ -32,13 +32,13 @@ class NativeViewportAppDelegate |
private: |
bool HasArg(const std::string& arg) { |
- return std::find(args_.begin(), args_.end(), arg) != args_.end(); |
+ const auto& args = app_->args(); |
+ return std::find(args.begin(), args.end(), arg) != args.end(); |
} |
// ApplicationDelegate implementation. |
virtual void Initialize(ApplicationImpl* application) override { |
app_ = application; |
- args_ = application->args().To<std::vector<std::string> >(); |
#if !defined(COMPONENT_BUILD) |
if (HasArg(kUseTestConfig)) |
@@ -70,7 +70,6 @@ class NativeViewportAppDelegate |
} |
ApplicationImpl* app_; |
- std::vector<std::string> args_; |
scoped_refptr<gfx::GLShareGroup> share_group_; |
scoped_refptr<gpu::gles2::MailboxManager> mailbox_manager_; |
bool is_headless_; |