Chromium Code Reviews| Index: chrome/browser/ui/gtk/dock_service.cc |
| diff --git a/chrome/browser/ui/gtk/dock_service.cc b/chrome/browser/ui/gtk/dock_service.cc |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..0ca2f4951858429ca66037e2fa34cd6d89d1d67c |
| --- /dev/null |
| +++ b/chrome/browser/ui/gtk/dock_service.cc |
| @@ -0,0 +1,28 @@ |
| +// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#include "chrome/browser/ui/gtk/dock_service.h" |
| + |
| +#include "base/scoped_ptr.h" |
| +#include "chrome/browser/ui/gtk/unity_dock_service.h" |
| + |
| +namespace { |
| + |
| +bool tried_ = false; |
| + |
| +} // namespace |
| + |
| +// static |
| +DockService* DockService::GetService() { |
| + static scoped_ptr<DockService> dock; |
| + if (!tried_) { |
| + // For now, we only try to build the unity dock service. |
| + dock.reset(UnityDockService::Build()); |
|
Evan Martin
2011/04/26 00:33:52
Are there other dock services that you intend to s
Elliot Glaysher
2011/04/26 01:02:39
I would like (if I can figure out DBUS) to support
|
| + |
| + tried_ = true; |
| + } |
| + |
| + return dock.get(); |
| +} |
| + |