summaryrefslogtreecommitdiffstats
path: root/chrome/common
diff options
context:
space:
mode:
authorevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-18 22:04:28 +0000
committerevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-18 22:04:28 +0000
commit19d7e9684e85feae1ecf9959baf07a94b01b1bce (patch)
treebd30e91dc44ae37bad8670b88eaca77ece65699a /chrome/common
parent3851091de6451d26ba85318a9c36bd7f2923d2d8 (diff)
downloadchromium_src-19d7e9684e85feae1ecf9959baf07a94b01b1bce.zip
chromium_src-19d7e9684e85feae1ecf9959baf07a94b01b1bce.tar.gz
chromium_src-19d7e9684e85feae1ecf9959baf07a94b01b1bce.tar.bz2
Implement skeletal ProcessSingleton on Linux to cut down on NOTIMPLEMENTED()s.
We now will refuse to run a second browser process if one is already running; making the second invocation bring up new windows in the first remains left to be implemented. Review URL: http://codereview.chromium.org/20448 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9980 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r--chrome/common/temp_scaffolding_stubs.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/chrome/common/temp_scaffolding_stubs.h b/chrome/common/temp_scaffolding_stubs.h
index 3c7f710..2e487ac 100644
--- a/chrome/common/temp_scaffolding_stubs.h
+++ b/chrome/common/temp_scaffolding_stubs.h
@@ -109,10 +109,8 @@ class X509Certificate;
//---------------------------------------------------------------------------
// These stubs are for Browser_main()
-// TODO(port): the current ProcessSingleton implementation is very
-// windows-specific, but provides the concept of a singleton browser
-// process per user-data-dir. Investigate how achieve this on other
-// platforms and see if this API works.
+#if defined(OS_MACOSX)
+// TODO(port): needs an implementation of ProcessSingleton.
class ProcessSingleton {
public:
explicit ProcessSingleton(const FilePath& user_data_dir) { }
@@ -126,6 +124,7 @@ class ProcessSingleton {
void Lock() { NOTIMPLEMENTED(); }
void Unlock() { NOTIMPLEMENTED(); }
};
+#endif // defined(OS_MACOSX)
class GoogleUpdateSettings {
public: