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

Side by Side Diff: chrome/browser/chromeos/accessibility/accessibility_manager.cc

Issue 141733008: Use incognito split for ChromeVox and TTS in Guest mode (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: added comment Created 6 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/browser_resources.grd ('k') | chrome/browser/extensions/component_loader.h » ('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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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/chromeos/accessibility/accessibility_manager.h" 5 #include "chrome/browser/chromeos/accessibility/accessibility_manager.h"
6 6
7 #include "ash/audio/sounds.h" 7 #include "ash/audio/sounds.h"
8 #include "ash/autoclick/autoclick_controller.h" 8 #include "ash/autoclick/autoclick_controller.h"
9 #include "ash/high_contrast/high_contrast_controller.h" 9 #include "ash/high_contrast/high_contrast_controller.h"
10 #include "ash/metrics/user_metrics_recorder.h" 10 #include "ash/metrics/user_metrics_recorder.h"
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 std::string extension_id_; 149 std::string extension_id_;
150 int render_process_id_; 150 int render_process_id_;
151 int render_view_id_; 151 int render_view_id_;
152 std::queue<extensions::ExtensionResource> resources_; 152 std::queue<extensions::ExtensionResource> resources_;
153 }; 153 };
154 154
155 void LoadChromeVoxExtension(Profile* profile, 155 void LoadChromeVoxExtension(Profile* profile,
156 RenderViewHost* render_view_host) { 156 RenderViewHost* render_view_host) {
157 ExtensionService* extension_service = 157 ExtensionService* extension_service =
158 extensions::ExtensionSystem::Get(profile)->extension_service(); 158 extensions::ExtensionSystem::Get(profile)->extension_service();
159 base::FilePath path = GetChromeVoxPath();
160 std::string extension_id = 159 std::string extension_id =
161 extension_service->component_loader()->Add(IDR_CHROMEVOX_MANIFEST, 160 extension_service->component_loader()->AddChromeVoxExtension();
162 path);
163 if (render_view_host) { 161 if (render_view_host) {
164 ExtensionService* extension_service = 162 ExtensionService* extension_service =
165 extensions::ExtensionSystem::Get(profile)->extension_service(); 163 extensions::ExtensionSystem::Get(profile)->extension_service();
166 const extensions::Extension* extension = 164 const extensions::Extension* extension =
167 extension_service->extensions()->GetByID(extension_id); 165 extension_service->extensions()->GetByID(extension_id);
168 166
169 // Set a flag to tell ChromeVox that it's just been enabled, 167 // Set a flag to tell ChromeVox that it's just been enabled,
170 // so that it won't interrupt our speech feedback enabled message. 168 // so that it won't interrupt our speech feedback enabled message.
171 ExtensionMsg_ExecuteCode_Params params; 169 ExtensionMsg_ExecuteCode_Params params;
172 params.request_id = 0; 170 params.request_id = 0;
(...skipping 778 matching lines...) Expand 10 before | Expand all | Expand 10 after
951 949
952 void AccessibilityManager::PostUnloadChromeVox(Profile* profile) { 950 void AccessibilityManager::PostUnloadChromeVox(Profile* profile) {
953 // Do any teardown work needed immediately after ChromeVox actually unloads. 951 // Do any teardown work needed immediately after ChromeVox actually unloads.
954 if (system_sounds_enabled_) { 952 if (system_sounds_enabled_) {
955 ash::PlaySystemSound(SOUND_SPOKEN_FEEDBACK_DISABLED, 953 ash::PlaySystemSound(SOUND_SPOKEN_FEEDBACK_DISABLED,
956 false /* honor_spoken_feedback */); 954 false /* honor_spoken_feedback */);
957 } 955 }
958 } 956 }
959 957
960 } // namespace chromeos 958 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/browser_resources.grd ('k') | chrome/browser/extensions/component_loader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698