diff options
author | agl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-23 22:58:18 +0000 |
---|---|---|
committer | agl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-23 22:58:18 +0000 |
commit | eaebefafe519fadf44438f48925abecf8e04f0a1 (patch) | |
tree | 9718407a255dd860806d16778c52c152c7a7ee33 /chrome/browser/zygote_main_linux.cc | |
parent | 306880ed0ba3eaf9eff95b71e32180d8d77ea072 (diff) | |
download | chromium_src-eaebefafe519fadf44438f48925abecf8e04f0a1.zip chromium_src-eaebefafe519fadf44438f48925abecf8e04f0a1.tar.gz chromium_src-eaebefafe519fadf44438f48925abecf8e04f0a1.tar.bz2 |
Rename constants to be consistent with the names used in
sandbox/linux/suid/sandbox.c, in order to make the source more
greppable.
With inconsistent constant names it was harder to find who sends the
message that sandbox.c receives.
http://codereview.chromium.org/652108
(Patch from mseaborn@chromium.org)
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39793 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/zygote_main_linux.cc')
-rw-r--r-- | chrome/browser/zygote_main_linux.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/chrome/browser/zygote_main_linux.cc b/chrome/browser/zygote_main_linux.cc index 009ba00d..eef6b6d 100644 --- a/chrome/browser/zygote_main_linux.cc +++ b/chrome/browser/zygote_main_linux.cc @@ -513,10 +513,10 @@ static bool EnterSandbox() { PreSandboxInit(); - static const char kChrootMe = 'C'; - static const char kChrootMeSuccess = 'O'; + static const char kMsgChrootMe = 'C'; + static const char kMsgChrootSuccessful = 'O'; - if (HANDLE_EINTR(write(fd, &kChrootMe, 1)) != 1) { + if (HANDLE_EINTR(write(fd, &kMsgChrootMe, 1)) != 1) { LOG(ERROR) << "Failed to write to chroot pipe: " << errno; return false; } @@ -530,7 +530,7 @@ static bool EnterSandbox() { return false; } - if (reply != kChrootMeSuccess) { + if (reply != kMsgChrootSuccessful) { LOG(ERROR) << "Error code reply from chroot helper"; return false; } |