OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 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 "views/focus/focus_manager_factory.h" | 5 #include "views/focus/focus_manager_factory.h" |
6 | 6 |
7 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
8 #include "views/focus/focus_manager.h" | 8 #include "views/focus/focus_manager.h" |
9 | 9 |
10 namespace { | 10 namespace { |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 | 46 |
47 // static | 47 // static |
48 void FocusManagerFactory::Install(FocusManagerFactory* f) { | 48 void FocusManagerFactory::Install(FocusManagerFactory* f) { |
49 if (f == focus_manager_factory) | 49 if (f == focus_manager_factory) |
50 return; | 50 return; |
51 delete focus_manager_factory; | 51 delete focus_manager_factory; |
52 focus_manager_factory = f ? f : new DefaultFocusManagerFactory(); | 52 focus_manager_factory = f ? f : new DefaultFocusManagerFactory(); |
53 } | 53 } |
54 | 54 |
55 } // namespace views | 55 } // namespace views |
OLD | NEW |