Index: chrome/browser/chromeos/wm_ipc.cc |
diff --git a/chrome/browser/chromeos/wm_ipc.cc b/chrome/browser/chromeos/wm_ipc.cc |
index ead38c9541e2067463d428d8c3e8dc3bb412046b..da7cd1559791e1c4bb431bf39d2ff6da712ee614 100644 |
--- a/chrome/browser/chromeos/wm_ipc.cc |
+++ b/chrome/browser/chromeos/wm_ipc.cc |
@@ -27,18 +27,13 @@ struct AtomInfo { |
// Each value from the Atom enum must be present here. |
static const AtomInfo kAtomInfos[] = { |
+ { WmIpc::ATOM_CHROME_LOGGED_IN, "_CHROME_LOGGED_IN" }, |
{ WmIpc::ATOM_CHROME_WINDOW_TYPE, "_CHROME_WINDOW_TYPE" }, |
{ WmIpc::ATOM_CHROME_WM_MESSAGE, "_CHROME_WM_MESSAGE" }, |
{ WmIpc::ATOM_MANAGER, "MANAGER" }, |
- { WmIpc::ATOM_NET_SUPPORTING_WM_CHECK, "_NET_SUPPORTING_WM_CHECK" }, |
- { WmIpc::ATOM_NET_WM_NAME, "_NET_WM_NAME" }, |
- { WmIpc::ATOM_PRIMARY, "PRIMARY" }, |
{ WmIpc::ATOM_STRING, "STRING" }, |
{ WmIpc::ATOM_UTF8_STRING, "UTF8_STRING" }, |
- { WmIpc::ATOM_WM_NORMAL_HINTS, "WM_NORMAL_HINTS" }, |
{ WmIpc::ATOM_WM_S0, "WM_S0" }, |
- { WmIpc::ATOM_WM_STATE, "WM_STATE" }, |
- { WmIpc::ATOM_WM_TRANSIENT_FOR, "WM_TRANSIENT_FOR" }, |
{ WmIpc::ATOM_WM_SYSTEM_METRICS, "WM_SYSTEM_METRICS" }, |
}; |
@@ -215,6 +210,14 @@ void WmIpc::HandleNonChromeClientMessageEvent(const GdkEventClient& event) { |
} |
} |
+void WmIpc::SetLoggedInProperty(bool logged_in) { |
+ std::vector<int> values; |
+ values.push_back(static_cast<int>(logged_in)); |
+ SetIntProperty(gdk_x11_get_default_root_xwindow(), |
+ type_to_atom_[ATOM_CHROME_LOGGED_IN], |
+ values); |
+} |
+ |
WmIpc::WmIpc() { |
scoped_array<char*> names(new char*[kNumAtoms]); |
scoped_array<Atom> atoms(new Atom[kNumAtoms]); |