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

Side by Side Diff: chrome/browser/policy/policy_path_parser_linux.cc

Issue 12277002: Make sure ShellIntegration::CommandLineArgsForLauncher respects the UserDataDir policy. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Addressed comments. Created 7 years, 10 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 <pwd.h> 5 #include <pwd.h>
6 #include <sys/types.h> 6 #include <sys/types.h>
7 #include <unistd.h> 7 #include <unistd.h>
8 8
9 #include "chrome/browser/policy/policy_path_parser.h" 9 #include "chrome/browser/policy/policy_path_parser.h"
10 10
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 char machinename[255]; 46 char machinename[255];
47 if (gethostname(machinename, 255) == 0) { 47 if (gethostname(machinename, 255) == 0) {
48 result.replace(position, strlen(kMachineNamePolicyVarName), machinename); 48 result.replace(position, strlen(kMachineNamePolicyVarName), machinename);
49 } else { 49 } else {
50 LOG(ERROR) << "Machine name variable can not be resolved."; 50 LOG(ERROR) << "Machine name variable can not be resolved.";
51 } 51 }
52 } 52 }
53 return result; 53 return result;
54 } 54 }
55 55
56 void CheckUserDataDirPolicy(base::FilePath* user_data_dir) {
57 // This function is not implemented in Linux because we don't support the
58 // policy on this platform.
59 NOTREACHED();
60 }
61
56 } // namespace path_parser 62 } // namespace path_parser
57 63
58 } // namespace policy 64 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698