Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "chrome/browser/ui/gtk/dock_service.h" | |
| 6 | |
| 7 #include "base/scoped_ptr.h" | |
| 8 #include "chrome/browser/ui/gtk/unity_dock_service.h" | |
| 9 | |
| 10 namespace { | |
| 11 | |
| 12 bool tried_ = false; | |
| 13 | |
| 14 } // namespace | |
| 15 | |
| 16 // static | |
| 17 DockService* DockService::GetService() { | |
| 18 static scoped_ptr<DockService> dock; | |
| 19 if (!tried_) { | |
| 20 // For now, we only try to build the unity dock service. | |
| 21 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
| |
| 22 | |
| 23 tried_ = true; | |
| 24 } | |
| 25 | |
| 26 return dock.get(); | |
| 27 } | |
| 28 | |
| OLD | NEW |