diff options
author | sanjeevr@chromium.org <sanjeevr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-25 19:00:41 +0000 |
---|---|---|
committer | sanjeevr@chromium.org <sanjeevr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-25 19:00:41 +0000 |
commit | 5f86d6ffe9722dafa98bc5b068962de4533e0130 (patch) | |
tree | 8aaa2f8b9839f7e07cc388a59aa3760849fc7b92 /chrome/common/auto_start_linux.h | |
parent | e34b6f3a2a024060d59fb7585a4a497a7aa2cf26 (diff) | |
download | chromium_src-5f86d6ffe9722dafa98bc5b068962de4533e0130.zip chromium_src-5f86d6ffe9722dafa98bc5b068962de4533e0130.tar.gz chromium_src-5f86d6ffe9722dafa98bc5b068962de4533e0130.tar.bz2 |
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
Diffstat (limited to 'chrome/common/auto_start_linux.h')
-rw-r--r-- | chrome/common/auto_start_linux.h | 8 |
1 files changed, 7 insertions, 1 deletions
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); }; |