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

Side by Side Diff: chrome/common/service_process_util.cc

Issue 8414020: Expose the sandbox related code through the content API. I did a bit of cleanup while I was doing... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 <algorithm> 5 #include <algorithm>
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/file_util.h" 8 #include "base/file_util.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/mac/scoped_nsautorelease_pool.h"
11 #include "base/memory/singleton.h" 10 #include "base/memory/singleton.h"
12 #include "base/path_service.h" 11 #include "base/path_service.h"
13 #include "base/process_util.h" 12 #include "base/process_util.h"
14 #include "base/sha1.h" 13 #include "base/sha1.h"
15 #include "base/string16.h" 14 #include "base/string16.h"
16 #include "base/string_number_conversions.h" 15 #include "base/string_number_conversions.h"
17 #include "base/string_util.h" 16 #include "base/string_util.h"
18 #include "base/utf_string_conversions.h" 17 #include "base/utf_string_conversions.h"
19 #include "base/version.h" 18 #include "base/version.h"
20 #include "chrome/common/chrome_constants.h" 19 #include "chrome/common/chrome_constants.h"
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 260
262 // The user data directory is the only other flag we currently want to 261 // The user data directory is the only other flag we currently want to
263 // possibly store. 262 // possibly store.
264 const CommandLine& browser_command_line = *CommandLine::ForCurrentProcess(); 263 const CommandLine& browser_command_line = *CommandLine::ForCurrentProcess();
265 FilePath user_data_dir = 264 FilePath user_data_dir =
266 browser_command_line.GetSwitchValuePath(switches::kUserDataDir); 265 browser_command_line.GetSwitchValuePath(switches::kUserDataDir);
267 if (!user_data_dir.empty()) 266 if (!user_data_dir.empty())
268 autorun_command_line_->AppendSwitchPath(switches::kUserDataDir, 267 autorun_command_line_->AppendSwitchPath(switches::kUserDataDir,
269 user_data_dir); 268 user_data_dir);
270 } 269 }
OLDNEW
« base/message_pump_default.cc ('K') | « chrome/chrome_exe.gypi ('k') | chrome/nacl/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698