summaryrefslogtreecommitdiffstats
path: root/chrome/common
diff options
context:
space:
mode:
authorcmasone@google.com <cmasone@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-21 01:47:41 +0000
committercmasone@google.com <cmasone@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-21 01:47:41 +0000
commit2125f7df5af31857e7698264ed42e616d8271b63 (patch)
tree93fedc0c6d069653152d55acb8d30deaac3fe52d /chrome/common
parente4dffe1f0817173ac6ef403b0350d8b5e1743f6d (diff)
downloadchromium_src-2125f7df5af31857e7698264ed42e616d8271b63.zip
chromium_src-2125f7df5af31857e7698264ed42e616d8271b63.tar.gz
chromium_src-2125f7df5af31857e7698264ed42e616d8271b63.tar.bz2
[Chrome OS] Adds support for injecting Corp cookies at startup
To support single-sign-on for Chrome OS, we need a way to inject cookies into Chrome. In the case of session cookies, putting them into Chrome's cookie jar DB doesn't work. This CL adds a command line flag that tells chrome the name of a Unix pipe to open, from which it can read said cookies. Eventually, I want to replace this pipe-reading with an appropriate usage of DBus, but Chrome OS isn't there yet. This CL adds the appropriate infrastructure, though, and the PipeReader class can later be replaced with something that pulls the cookies off DBus instead. Review URL: http://codereview.chromium.org/174062 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23936 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r--chrome/common/chrome_switches.cc7
-rw-r--r--chrome/common/chrome_switches.h5
2 files changed, 12 insertions, 0 deletions
diff --git a/chrome/common/chrome_switches.cc b/chrome/common/chrome_switches.cc
index 3a32417..51fa8fb 100644
--- a/chrome/common/chrome_switches.cc
+++ b/chrome/common/chrome_switches.cc
@@ -578,4 +578,11 @@ const wchar_t kEnableApplicationCache[] = L"enable-application-cache";
// Override the default server used for profile sync.
const wchar_t kSyncServiceURL[] = L"sync-url";
+
+#if defined(OS_CHROMEOS)
+// The name of the pipe over which the Chrome OS login manager will send
+// single-sign-on cookies.
+const wchar_t kCookiePipe[] = L"cookie-pipe";
+#endif
+
} // namespace switches
diff --git a/chrome/common/chrome_switches.h b/chrome/common/chrome_switches.h
index 28426be..1bc7da3 100644
--- a/chrome/common/chrome_switches.h
+++ b/chrome/common/chrome_switches.h
@@ -230,6 +230,11 @@ extern const wchar_t kEnableDatabases[];
extern const wchar_t kEnableApplicationCache[];
extern const wchar_t kSyncServiceURL[];
+
+#if defined(OS_CHROMEOS)
+extern const wchar_t kCookiePipe[];
+#endif
+
} // namespace switches
#endif // CHROME_COMMON_CHROME_SWITCHES_H_