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

Side by Side Diff: chrome/browser/extensions/api/command_line_private/command_line_private_api.cc

Issue 819133004: Make callers of CommandLine use it via the base:: namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 6 years 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 "chrome/browser/extensions/api/command_line_private/command_line_privat e_api.h" 5 #include "chrome/browser/extensions/api/command_line_private/command_line_privat e_api.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 14 matching lines...) Expand all
25 scoped_ptr<command_line_private::HasSwitch::Params> params( 25 scoped_ptr<command_line_private::HasSwitch::Params> params(
26 command_line_private::HasSwitch::Params::Create(*args_)); 26 command_line_private::HasSwitch::Params::Create(*args_));
27 EXTENSION_FUNCTION_VALIDATE(params); 27 EXTENSION_FUNCTION_VALIDATE(params);
28 28
29 if (params->name.empty()) { 29 if (params->name.empty()) {
30 error_ = kEmptySwitchName; 30 error_ = kEmptySwitchName;
31 return false; 31 return false;
32 } 32 }
33 33
34 results_ = command_line_private::HasSwitch::Results::Create( 34 results_ = command_line_private::HasSwitch::Results::Create(
35 CommandLine::ForCurrentProcess()->HasSwitch(params->name)); 35 base::CommandLine::ForCurrentProcess()->HasSwitch(params->name));
36 return true; 36 return true;
37 } 37 }
38 38
39 } // namespace extensions 39 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698