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

Side by Side Diff: chrome/browser/ui/views/ash/chrome_browser_main_extra_parts_ash.cc

Issue 2522613004: Revert of chromeos: Convert ash VPNDelegate interface to mojo (Closed)
Patch Set: Created 4 years 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 | « chrome/browser/ui/views/ash/chrome_browser_main_extra_parts_ash.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/ash/chrome_browser_main_extra_parts_ash.h" 5 #include "chrome/browser/ui/views/ash/chrome_browser_main_extra_parts_ash.h"
6 6
7 #include "ash/root_window_controller.h" 7 #include "ash/root_window_controller.h"
8 #include "ash/shell.h" 8 #include "ash/shell.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/lazy_instance.h" 10 #include "base/lazy_instance.h"
(...skipping 12 matching lines...) Expand all
23 #include "content/public/common/service_manager_connection.h" 23 #include "content/public/common/service_manager_connection.h"
24 #include "mojo/public/cpp/bindings/strong_binding.h" 24 #include "mojo/public/cpp/bindings/strong_binding.h"
25 #include "services/service_manager/public/cpp/connector.h" 25 #include "services/service_manager/public/cpp/connector.h"
26 #include "services/ui/public/interfaces/ime.mojom.h" 26 #include "services/ui/public/interfaces/ime.mojom.h"
27 #include "ui/aura/env.h" 27 #include "ui/aura/env.h"
28 #include "ui/keyboard/content/keyboard.h" 28 #include "ui/keyboard/content/keyboard.h"
29 #include "ui/keyboard/keyboard_controller.h" 29 #include "ui/keyboard/keyboard_controller.h"
30 30
31 #if defined(OS_CHROMEOS) 31 #if defined(OS_CHROMEOS)
32 #include "chrome/browser/ui/ash/system_tray_client.h" 32 #include "chrome/browser/ui/ash/system_tray_client.h"
33 #include "chrome/browser/ui/ash/vpn_list_forwarder.h"
34 #include "chrome/browser/ui/views/select_file_dialog_extension.h" 33 #include "chrome/browser/ui/views/select_file_dialog_extension.h"
35 #include "chrome/browser/ui/views/select_file_dialog_extension_factory.h" 34 #include "chrome/browser/ui/views/select_file_dialog_extension_factory.h"
36 #endif // defined(OS_CHROMEOS) 35 #endif // defined(OS_CHROMEOS)
37 36
38 namespace { 37 namespace {
39 38
40 void RegisterIMEDriver() { 39 void RegisterIMEDriver() {
41 // Instantiate the IME driver and register it to the UI service. 40 // Instantiate the IME driver and register it to the UI service.
42 DCHECK_CURRENTLY_ON(content::BrowserThread::UI); 41 DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
43 ui::mojom::IMEDriverPtr ime_driver_ptr; 42 ui::mojom::IMEDriverPtr ime_driver_ptr;
(...skipping 21 matching lines...) Expand all
65 immersive_handler_factory_ = base::MakeUnique<ImmersiveHandlerFactoryMus>(); 64 immersive_handler_factory_ = base::MakeUnique<ImmersiveHandlerFactoryMus>();
66 // IME driver must be available at login screen, so initialize before 65 // IME driver must be available at login screen, so initialize before
67 // profile. 66 // profile.
68 RegisterIMEDriver(); 67 RegisterIMEDriver();
69 } 68 }
70 69
71 #if defined(OS_CHROMEOS) 70 #if defined(OS_CHROMEOS)
72 // Must be available at login screen, so initialize before profile. 71 // Must be available at login screen, so initialize before profile.
73 system_tray_client_ = base::MakeUnique<SystemTrayClient>(); 72 system_tray_client_ = base::MakeUnique<SystemTrayClient>();
74 73
75 vpn_list_forwarder_ = base::MakeUnique<VpnListForwarder>();
76
77 // For OS_CHROMEOS, virtual keyboard needs to be initialized before profile 74 // For OS_CHROMEOS, virtual keyboard needs to be initialized before profile
78 // initialized. Otherwise, virtual keyboard extension will not load at login 75 // initialized. Otherwise, virtual keyboard extension will not load at login
79 // screen. 76 // screen.
80 keyboard::InitializeKeyboard(); 77 keyboard::InitializeKeyboard();
81 78
82 ui::SelectFileDialog::SetFactory(new SelectFileDialogExtensionFactory); 79 ui::SelectFileDialog::SetFactory(new SelectFileDialogExtensionFactory);
83 #endif // defined(OS_CHROMEOS) 80 #endif // defined(OS_CHROMEOS)
84 } 81 }
85 82
86 void ChromeBrowserMainExtraPartsAsh::PostProfileInit() { 83 void ChromeBrowserMainExtraPartsAsh::PostProfileInit() {
(...skipping 11 matching lines...) Expand all
98 // Initialize TabScrubber after the Ash Shell has been initialized. 95 // Initialize TabScrubber after the Ash Shell has been initialized.
99 TabScrubber::GetInstance(); 96 TabScrubber::GetInstance();
100 // Activate virtual keyboard after profile is initialized. It depends on the 97 // Activate virtual keyboard after profile is initialized. It depends on the
101 // default profile. 98 // default profile.
102 ash::Shell::GetPrimaryRootWindowController()->ActivateKeyboard( 99 ash::Shell::GetPrimaryRootWindowController()->ActivateKeyboard(
103 keyboard::KeyboardController::GetInstance()); 100 keyboard::KeyboardController::GetInstance());
104 } 101 }
105 102
106 void ChromeBrowserMainExtraPartsAsh::PostMainMessageLoopRun() { 103 void ChromeBrowserMainExtraPartsAsh::PostMainMessageLoopRun() {
107 #if defined(OS_CHROMEOS) 104 #if defined(OS_CHROMEOS)
108 vpn_list_forwarder_.reset();
109 system_tray_client_.reset(); 105 system_tray_client_.reset();
110 #endif 106 #endif
111 chrome::CloseAsh(); 107 chrome::CloseAsh();
112 } 108 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/ash/chrome_browser_main_extra_parts_ash.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698