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

Side by Side Diff: chrome/browser/ui/views/app_list/win/app_list_service_win.cc

Issue 645683002: Get IME's to work in Chrome OS mode on Windows 7. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added a comment Created 6 years, 2 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 | « no previous file | ui/base/ime/remote_input_method_win.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/app_list/win/app_list_service_win.h" 5 #include "chrome/browser/ui/views/app_list/win/app_list_service_win.h"
6 6
7 #include <dwmapi.h> 7 #include <dwmapi.h>
8 #include <sstream> 8 #include <sstream>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 21 matching lines...) Expand all
32 #include "chrome/browser/ui/views/app_list/win/app_list_win.h" 32 #include "chrome/browser/ui/views/app_list/win/app_list_win.h"
33 #include "chrome/browser/web_applications/web_app.h" 33 #include "chrome/browser/web_applications/web_app.h"
34 #include "chrome/common/chrome_constants.h" 34 #include "chrome/common/chrome_constants.h"
35 #include "chrome/common/chrome_switches.h" 35 #include "chrome/common/chrome_switches.h"
36 #include "chrome/common/chrome_version_info.h" 36 #include "chrome/common/chrome_version_info.h"
37 #include "chrome/common/pref_names.h" 37 #include "chrome/common/pref_names.h"
38 #include "chrome/installer/util/browser_distribution.h" 38 #include "chrome/installer/util/browser_distribution.h"
39 #include "content/public/browser/browser_thread.h" 39 #include "content/public/browser/browser_thread.h"
40 #include "ui/app_list/views/app_list_view.h" 40 #include "ui/app_list/views/app_list_view.h"
41 #include "ui/base/win/shell.h" 41 #include "ui/base/win/shell.h"
42 #include "ui/base/ui_base_switches.h"
42 43
43 #if defined(GOOGLE_CHROME_BUILD) 44 #if defined(GOOGLE_CHROME_BUILD)
44 #include "chrome/installer/util/google_update_settings.h" 45 #include "chrome/installer/util/google_update_settings.h"
45 #include "chrome/installer/util/install_util.h" 46 #include "chrome/installer/util/install_util.h"
46 #include "chrome/installer/util/updating_app_registration_data.h" 47 #include "chrome/installer/util/updating_app_registration_data.h"
47 #include "chrome/installer/util/util_constants.h" 48 #include "chrome/installer/util/util_constants.h"
48 #endif // GOOGLE_CHROME_BUILD 49 #endif // GOOGLE_CHROME_BUILD
49 50
50 // static 51 // static
51 AppListService* AppListService::Get(chrome::HostDesktopType desktop_type) { 52 AppListService* AppListService::Get(chrome::HostDesktopType desktop_type) {
52 if (desktop_type == chrome::HOST_DESKTOP_TYPE_ASH) 53 if (desktop_type == chrome::HOST_DESKTOP_TYPE_ASH)
tapted 2014/10/10 01:23:46 nit: might be worth a DCHECK(CommandLine::ForCurr
ananta 2014/10/10 01:28:53 Done.
53 return AppListServiceAsh::GetInstance(); 54 return AppListServiceAsh::GetInstance();
54 55
55 return AppListServiceWin::GetInstance(); 56 return AppListServiceWin::GetInstance();
56 } 57 }
57 58
58 // static 59 // static
59 void AppListService::InitAll(Profile* initial_profile) { 60 void AppListService::InitAll(Profile* initial_profile) {
60 AppListServiceAsh::GetInstance()->Init(initial_profile); 61 if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kViewerConnect)) {
tapted 2014/10/10 01:23:46 nit: no curlies (consistent with surrounds)
ananta 2014/10/10 01:28:53 Done.
62 AppListServiceAsh::GetInstance()->Init(initial_profile);
63 }
61 AppListServiceWin::GetInstance()->Init(initial_profile); 64 AppListServiceWin::GetInstance()->Init(initial_profile);
62 } 65 }
63 66
64 namespace { 67 namespace {
65 68
66 // Migrate chrome::kAppLauncherIsEnabled pref to 69 // Migrate chrome::kAppLauncherIsEnabled pref to
67 // chrome::kAppLauncherHasBeenEnabled pref. 70 // chrome::kAppLauncherHasBeenEnabled pref.
68 void MigrateAppLauncherEnabledPref() { 71 void MigrateAppLauncherEnabledPref() {
69 PrefService* prefs = g_browser_process->local_state(); 72 PrefService* prefs = g_browser_process->local_state();
70 if (prefs->HasPrefPath(prefs::kAppLauncherIsEnabled)) { 73 if (prefs->HasPrefPath(prefs::kAppLauncherIsEnabled)) {
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
382 activation_tracker_.reset(new ActivationTrackerWin(this)); 385 activation_tracker_.reset(new ActivationTrackerWin(this));
383 } 386 }
384 387
385 void AppListServiceWin::OnViewDismissed() { 388 void AppListServiceWin::OnViewDismissed() {
386 activation_tracker_->OnViewHidden(); 389 activation_tracker_->OnViewHidden();
387 } 390 }
388 391
389 void AppListServiceWin::MoveNearCursor(app_list::AppListView* view) { 392 void AppListServiceWin::MoveNearCursor(app_list::AppListView* view) {
390 AppListWin::MoveNearCursor(view); 393 AppListWin::MoveNearCursor(view);
391 } 394 }
OLDNEW
« no previous file with comments | « no previous file | ui/base/ime/remote_input_method_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698