• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2019 The Chromium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 package org.chromium.base.shared_preferences;
6 
7 /** A placeholder key checker that never throws exceptions. Used in production builds. */
8 class NoOpPreferenceKeyChecker implements PreferenceKeyChecker {
9     @Override
checkIsKeyInUse(String key)10     public void checkIsKeyInUse(String key) {
11         // No-op.
12     }
13 
14     @Override
checkIsPrefixInUse(KeyPrefix prefix)15     public void checkIsPrefixInUse(KeyPrefix prefix) {
16         // No-op.
17     }
18 }
19