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

Unified Diff: mojo/application_manager/application_manager_unittest.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/application_manager/application_manager_unittest.cc
diff --git a/mojo/application_manager/application_manager_unittest.cc b/mojo/application_manager/application_manager_unittest.cc
index 5763265f37939aace9b3480fab502b05cc45a8a0..a5d750ec5df4ef6c78acea2893e935c1c7a7756d 100644
--- a/mojo/application_manager/application_manager_unittest.cc
+++ b/mojo/application_manager/application_manager_unittest.cc
@@ -108,9 +108,7 @@ class TestApplicationLoader : public ApplicationLoader,
void set_context(TestContext* context) { context_ = context; }
int num_loads() const { return num_loads_; }
- std::vector<std::string> GetArgs() {
- return test_app_->args().To<std::vector<std::string> >();
- }
+ const std::vector<std::string>& GetArgs() { return test_app_->args(); }
viettrungluu 2014/10/16 22:47:19 This method should be const.
private:
// ApplicationLoader implementation.
« no previous file with comments | « no previous file | mojo/examples/apptest/example_apptest.cc » ('j') | mojo/public/cpp/application/application_impl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698