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

Unified Diff: mojo/services/native_viewport/main.cc

Issue 657393003: Make ApplicationImpl::args() be a std::vector<std::string> (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git/+/master
Patch Set: Created 6 years, 2 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: 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_;

Powered by Google App Engine
This is Rietveld 408576698