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

Side by Side Diff: ash/content/shell_content_state.cc

Issue 2618143002: cros: Remove some OS platform ifdefs from ash (Closed)
Patch Set: rebase Created 3 years, 11 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
« no previous file with comments | « ash/content/shell_content_state.h ('k') | ash/dip_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "ash/content/shell_content_state.h" 5 #include "ash/content/shell_content_state.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "ui/keyboard/content/keyboard.h" 8 #include "ui/keyboard/content/keyboard.h"
9 9
10 namespace ash { 10 namespace ash {
(...skipping 14 matching lines...) Expand all
25 } 25 }
26 26
27 // static 27 // static
28 void ShellContentState::DestroyInstance() { 28 void ShellContentState::DestroyInstance() {
29 DCHECK(instance_); 29 DCHECK(instance_);
30 delete instance_; 30 delete instance_;
31 instance_ = nullptr; 31 instance_ = nullptr;
32 } 32 }
33 33
34 ShellContentState::ShellContentState() { 34 ShellContentState::ShellContentState() {
35 // The keyboard system must be initialized before the RootWindowController is 35 // The keyboard system must be initialized before the RootWindowController is
36 // created. 36 // created.
37 #if defined(OS_CHROMEOS)
38 keyboard::InitializeKeyboard(); 37 keyboard::InitializeKeyboard();
39 #endif
40 } 38 }
39
41 ShellContentState::~ShellContentState() {} 40 ShellContentState::~ShellContentState() {}
42 41
43 } // namespace ash 42 } // namespace ash
OLDNEW
« no previous file with comments | « ash/content/shell_content_state.h ('k') | ash/dip_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698