From 5f86d6ffe9722dafa98bc5b068962de4533e0130 Mon Sep 17 00:00:00 2001 From: "sanjeevr@chromium.org" Date: Fri, 25 Feb 2011 19:00:41 +0000 Subject: Removed the command line from ServiceProcessState::AddToAutoRun() and had the class calculate its own command line. Wired up Linux autorun code and added unit tests. BUG=None TEST=Test service process autorun when enabling the cloud print proxy, unit-tests. Review URL: http://codereview.chromium.org/6591002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76077 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/common/auto_start_linux.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'chrome/common/auto_start_linux.h') diff --git a/chrome/common/auto_start_linux.h b/chrome/common/auto_start_linux.h index 9d7cdf0c..d6b1009 100644 --- a/chrome/common/auto_start_linux.h +++ b/chrome/common/auto_start_linux.h @@ -20,7 +20,13 @@ class AutoStart { bool is_terminal_app); // Removes an autostart file. static bool Remove(const std::string& autostart_filename); - + // Gets the entire contents of an autostart file. + static bool GetAutostartFileContents(const std::string& autostart_filename, + std::string* contents); + // Gets a specific value from an autostart file. + static bool GetAutostartFileValue(const std::string& autostart_filename, + const std::string& value_name, + std::string* value); private: DISALLOW_IMPLICIT_CONSTRUCTORS(AutoStart); }; -- cgit v1.1