Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(846)

Unified Diff: chrome/browser/ui/gtk/dock_service.cc

Issue 6903017: GTK: Add download notifications to the unity dock. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: s/launcher/dock/; Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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();
+}
+

Powered by Google App Engine
This is Rietveld 408576698