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

Unified Diff: third_party/WebKit/Tools/Scripts/webkitpy/common/system/systemhost.py

Issue 2143123004: Access environment variables through Host object instead of directly. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased and updated after change for dummy home dir on linux. Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Tools/Scripts/webkitpy/common/system/systemhost.py
diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/common/system/systemhost.py b/third_party/WebKit/Tools/Scripts/webkitpy/common/system/systemhost.py
index e3bbe7c6d2295b9c7d2a466df9b75e4c195f3bd0..01f986278676bec7385065fc31a453fd3acee160 100644
--- a/third_party/WebKit/Tools/Scripts/webkitpy/common/system/systemhost.py
+++ b/third_party/WebKit/Tools/Scripts/webkitpy/common/system/systemhost.py
@@ -30,7 +30,7 @@ import os
import platform
import sys
-from webkitpy.common.system import environment, executive, filesystem, platforminfo, user, workspace
+from webkitpy.common.system import executive, filesystem, platforminfo, user, workspace
class SystemHost(object):
@@ -45,9 +45,7 @@ class SystemHost(object):
self.stdin = sys.stdin
self.stdout = sys.stdout
self.stderr = sys.stderr
-
- def copy_current_environment(self):
- return environment.Environment(os.environ.copy())
+ self.environ = os.environ
def print_(self, *args, **kwargs):
sep = kwargs.get('sep', ' ')

Powered by Google App Engine
This is Rietveld 408576698