Chromium Code Reviews| Index: ui/gfx/x/x11_connection.cc |
| diff --git a/sync/engine/commit_contribution.cc b/ui/gfx/x/x11_connection.cc |
| similarity index 52% |
| copy from sync/engine/commit_contribution.cc |
| copy to ui/gfx/x/x11_connection.cc |
| index cef02b57b9021598370cc9e7554ab15042a9489a..49e8b6a7a82af790f69445630b0c620aa04f94e7 100644 |
| --- a/sync/engine/commit_contribution.cc |
| +++ b/ui/gfx/x/x11_connection.cc |
| @@ -2,12 +2,16 @@ |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| -#include "sync/engine/commit_contribution.h" |
| +#include "ui/gfx/x/x11_connection.h" |
| -namespace syncer { |
| +#include <X11/Xlib.h> |
| -CommitContribution::CommitContribution() {} |
| +#include "ui/gfx/x/x11_types.h" |
| -CommitContribution::~CommitContribution() {} |
| +namespace gfx { |
| -} // namespace syncer |
| +bool InitializeX11() { |
| + return XInitThreads() && gfx::GetXDisplay(); |
|
darin (slow to review)
2014/04/12 16:37:19
Want to add a comment here about why calling GetXD
sadrul
2014/04/14 20:37:56
Done (added a comment in the header file).
|
| +} |
| + |
| +} // namespace gfx |