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

Side by Side Diff: chrome/browser/ui/views/apps/keyboard_hook_handler.cc

Issue 1308823002: Move Singleton and related structs to namespace base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: git cl format Created 5 years, 3 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/views/apps/keyboard_hook_handler.h" 5 #include "chrome/browser/ui/views/apps/keyboard_hook_handler.h"
6 6
7 #include "base/memory/singleton.h" 7 #include "base/memory/singleton.h"
8 8
9 // TODO(sriramsr): Implement for other platforms. 9 // TODO(sriramsr): Implement for other platforms.
10 // Empty implementation for other platforms. 10 // Empty implementation for other platforms.
11 void KeyboardHookHandler::Register(views::Widget* widget) { 11 void KeyboardHookHandler::Register(views::Widget* widget) {
12 } 12 }
13 13
14 void KeyboardHookHandler::Deregister(views::Widget* widget) { 14 void KeyboardHookHandler::Deregister(views::Widget* widget) {
15 } 15 }
16 16
17 // static 17 // static
18 KeyboardHookHandler* KeyboardHookHandler::GetInstance() { 18 KeyboardHookHandler* KeyboardHookHandler::GetInstance() {
19 return Singleton<KeyboardHookHandler, 19 return base::Singleton<KeyboardHookHandler, base::DefaultSingletonTraits<
20 DefaultSingletonTraits<KeyboardHookHandler>>::get(); 20 KeyboardHookHandler>>::get();
21 } 21 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698