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

Side by Side Diff: shell/switches.cc

Issue 1123263004: Initialize POD members of ApplicationManager, and other drive-by's. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 7 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "shell/switches.h" 5 #include "shell/switches.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/macros.h"
8 8
9 namespace switches { 9 namespace switches {
10 10
11 namespace { 11 namespace {
12
12 // This controls logging verbosity. It's not strictly a switch for mojo_shell, 13 // This controls logging verbosity. It's not strictly a switch for mojo_shell,
13 // and isn't included in the public switches, but is included here so that it 14 // and isn't included in the public switches, but is included here so that it
14 // doesn't trigger an error at startup. 15 // doesn't trigger an error at startup.
15 const char kV[] = "v"; 16 const char kV[] = "v";
16 17
17 } // namespace 18 } // namespace
18 19
19 // Specify configuration arguments for a Mojo application URL. For example: 20 // Specify configuration arguments for a Mojo application URL. For example:
20 // --args-for='mojo:wget http://www.google.com' 21 // --args-for='mojo:wget http://www.google.com'
21 const char kArgsFor[] = "args-for"; 22 const char kArgsFor[] = "args-for";
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 101
101 const std::set<std::string> GetAllSwitches() { 102 const std::set<std::string> GetAllSwitches() {
102 std::set<std::string> switch_set; 103 std::set<std::string> switch_set;
103 104
104 for (size_t i = 0; i < arraysize(kSwitchArray); ++i) 105 for (size_t i = 0; i < arraysize(kSwitchArray); ++i)
105 switch_set.insert(kSwitchArray[i]); 106 switch_set.insert(kSwitchArray[i]);
106 return switch_set; 107 return switch_set;
107 } 108 }
108 109
109 } // namespace switches 110 } // namespace switches
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698