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

Side by Side Diff: chrome/browser/policy/configuration_policy_handler_list_factory.cc

Issue 704883002: Exclude spellcheck related code properly on android/ios which doesn't have spellchecker (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Created 6 years, 1 month 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/about_flags.cc ('k') | chrome/common/chrome_switches.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 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/policy/configuration_policy_handler_list_factory.h" 5 #include "chrome/browser/policy/configuration_policy_handler_list_factory.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/memory/scoped_vector.h" 9 #include "base/memory/scoped_vector.h"
10 #include "base/values.h" 10 #include "base/values.h"
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 base::Value::TYPE_LIST }, 329 base::Value::TYPE_LIST },
330 { key::kRestrictSigninToPattern, 330 { key::kRestrictSigninToPattern,
331 prefs::kGoogleServicesUsernamePattern, 331 prefs::kGoogleServicesUsernamePattern,
332 base::Value::TYPE_STRING }, 332 base::Value::TYPE_STRING },
333 { key::kDefaultMediaStreamSetting, 333 { key::kDefaultMediaStreamSetting,
334 prefs::kManagedDefaultMediaStreamSetting, 334 prefs::kManagedDefaultMediaStreamSetting,
335 base::Value::TYPE_INTEGER }, 335 base::Value::TYPE_INTEGER },
336 { key::kDisableSafeBrowsingProceedAnyway, 336 { key::kDisableSafeBrowsingProceedAnyway,
337 prefs::kSafeBrowsingProceedAnywayDisabled, 337 prefs::kSafeBrowsingProceedAnywayDisabled,
338 base::Value::TYPE_BOOLEAN }, 338 base::Value::TYPE_BOOLEAN },
339 #if defined(ENABLE_SPELLCHECK)
bartfab (slow) 2014/11/07 16:25:22 Nit: Please add blank lines above and below this #
oshima 2014/11/07 18:51:36 Done.
339 { key::kSpellCheckServiceEnabled, 340 { key::kSpellCheckServiceEnabled,
340 prefs::kSpellCheckUseSpellingService, 341 prefs::kSpellCheckUseSpellingService,
341 base::Value::TYPE_BOOLEAN }, 342 base::Value::TYPE_BOOLEAN },
343 #endif
bartfab (slow) 2014/11/07 16:25:22 Nit: Please add // defined(ENABLE_SPELLCHECK) to s
oshima 2014/11/07 18:51:36 Done.
342 { key::kDisableScreenshots, 344 { key::kDisableScreenshots,
343 prefs::kDisableScreenshots, 345 prefs::kDisableScreenshots,
344 base::Value::TYPE_BOOLEAN }, 346 base::Value::TYPE_BOOLEAN },
345 { key::kAudioCaptureAllowed, 347 { key::kAudioCaptureAllowed,
346 prefs::kAudioCaptureAllowed, 348 prefs::kAudioCaptureAllowed,
347 base::Value::TYPE_BOOLEAN }, 349 base::Value::TYPE_BOOLEAN },
348 { key::kVideoCaptureAllowed, 350 { key::kVideoCaptureAllowed,
349 prefs::kVideoCaptureAllowed, 351 prefs::kVideoCaptureAllowed,
350 base::Value::TYPE_BOOLEAN }, 352 base::Value::TYPE_BOOLEAN },
351 { key::kAudioCaptureAllowedUrls, 353 { key::kAudioCaptureAllowedUrls,
(...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after
799 chrome_schema, 801 chrome_schema,
800 SCHEMA_STRICT, 802 SCHEMA_STRICT,
801 SimpleSchemaValidatingPolicyHandler::RECOMMENDED_ALLOWED, 803 SimpleSchemaValidatingPolicyHandler::RECOMMENDED_ALLOWED,
802 SimpleSchemaValidatingPolicyHandler::MANDATORY_PROHIBITED))); 804 SimpleSchemaValidatingPolicyHandler::MANDATORY_PROHIBITED)));
803 #endif // defined(OS_CHROMEOS) 805 #endif // defined(OS_CHROMEOS)
804 806
805 return handlers.Pass(); 807 return handlers.Pass();
806 } 808 }
807 809
808 } // namespace policy 810 } // namespace policy
OLDNEW
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | chrome/common/chrome_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698