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

Side by Side Diff: android_webview/browser/aw_content_browser_client.cc

Issue 2284583002: [Android] Add AndroidSpellChecker feature to allow for gradual rollout using finch. (Closed)
Patch Set: fix compile Created 4 years, 3 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 | chrome/browser/about_flags.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 (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 "android_webview/browser/aw_content_browser_client.h" 5 #include "android_webview/browser/aw_content_browser_client.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "android_webview/browser/aw_browser_context.h" 9 #include "android_webview/browser/aw_browser_context.h"
10 #include "android_webview/browser/aw_browser_main_parts.h" 10 #include "android_webview/browser/aw_browser_main_parts.h"
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 // per-view access checks, and access is granted by default (see 218 // per-view access checks, and access is granted by default (see
219 // AwSettings.mAllowContentUrlAccess). 219 // AwSettings.mAllowContentUrlAccess).
220 content::ChildProcessSecurityPolicy::GetInstance()->GrantScheme( 220 content::ChildProcessSecurityPolicy::GetInstance()->GrantScheme(
221 host->GetID(), url::kContentScheme); 221 host->GetID(), url::kContentScheme);
222 222
223 host->AddFilter(new AwContentsMessageFilter(host->GetID())); 223 host->AddFilter(new AwContentsMessageFilter(host->GetID()));
224 host->AddFilter(new cdm::CdmMessageFilterAndroid()); 224 host->AddFilter(new cdm::CdmMessageFilterAndroid());
225 host->AddFilter(new AwPrintingMessageFilter(host->GetID())); 225 host->AddFilter(new AwPrintingMessageFilter(host->GetID()));
226 226
227 #if defined(ENABLE_SPELLCHECK) 227 #if defined(ENABLE_SPELLCHECK)
228 if (base::CommandLine::ForCurrentProcess()->HasSwitch( 228 host->AddFilter(new SpellCheckMessageFilterPlatform(host->GetID()));
229 spellcheck::switches::kEnableAndroidSpellChecker)) {
230 host->AddFilter(new SpellCheckMessageFilterPlatform(host->GetID()));
231 }
232 #endif 229 #endif
233 } 230 }
234 231
235 bool AwContentBrowserClient::IsHandledURL(const GURL& url) { 232 bool AwContentBrowserClient::IsHandledURL(const GURL& url) {
236 if (!url.is_valid()) { 233 if (!url.is_valid()) {
237 // We handle error cases. 234 // We handle error cases.
238 return true; 235 return true;
239 } 236 }
240 237
241 const std::string scheme = url.scheme(); 238 const std::string scheme = url.scheme();
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
521 518
522 #if defined(VIDEO_HOLE) 519 #if defined(VIDEO_HOLE)
523 content::ExternalVideoSurfaceContainer* 520 content::ExternalVideoSurfaceContainer*
524 AwContentBrowserClient::OverrideCreateExternalVideoSurfaceContainer( 521 AwContentBrowserClient::OverrideCreateExternalVideoSurfaceContainer(
525 content::WebContents* web_contents) { 522 content::WebContents* web_contents) {
526 return native_factory_->CreateExternalVideoSurfaceContainer(web_contents); 523 return native_factory_->CreateExternalVideoSurfaceContainer(web_contents);
527 } 524 }
528 #endif 525 #endif
529 526
530 } // namespace android_webview 527 } // namespace android_webview
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/about_flags.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698