summaryrefslogtreecommitdiffstats
path: root/chrome/browser/gtk/accelerators_gtk.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/gtk/accelerators_gtk.cc')
-rw-r--r--chrome/browser/gtk/accelerators_gtk.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/gtk/accelerators_gtk.cc b/chrome/browser/gtk/accelerators_gtk.cc
index c0a2f73..5456b0d 100644
--- a/chrome/browser/gtk/accelerators_gtk.cc
+++ b/chrome/browser/gtk/accelerators_gtk.cc
@@ -8,6 +8,7 @@
#include <gdk/gdkkeysyms.h>
#include <X11/XF86keysym.h>
+#include "base/singleton.h"
#include "chrome/app/chrome_command_ids.h"
namespace {
@@ -190,6 +191,11 @@ AcceleratorsGtk::AcceleratorsGtk() {
AcceleratorsGtk::~AcceleratorsGtk() {}
+// static
+AcceleratorsGtk* AcceleratorsGtk::GetInstance() {
+ return Singleton<AcceleratorsGtk>::get();
+}
+
const menus::AcceleratorGtk* AcceleratorsGtk::GetPrimaryAcceleratorForCommand(
int command_id) {
base::hash_map<int, menus::AcceleratorGtk>::const_iterator iter =