Chromium Code Reviews| Index: chrome/browser/extensions/extension_preference_api_constants.cc |
| diff --git a/chrome/browser/extensions/extension_preference_api_constants.cc b/chrome/browser/extensions/extension_preference_api_constants.cc |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..f9a7da68ea674ebfc0b2197063f0119a96109326 |
| --- /dev/null |
| +++ b/chrome/browser/extensions/extension_preference_api_constants.cc |
| @@ -0,0 +1,25 @@ |
| +// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#include "chrome/browser/extensions/extension_preference_api_constants.h" |
| + |
| +namespace extension_preference_api_constants { |
| + |
| +const char kIncognitoKey[] = "incognito"; |
| + |
| +const char kScopeKey[] = "scope"; |
| + |
| +const char kIncognitoErrorMessage[] = |
| + "You do not have permission to access incognito preferences."; |
| + |
| +const char kIncognitoSessionOnlyErrorMessage[] = |
| + "You cannot set a preference with scope 'incognito_session_only' when no " |
| + "incognito window is open."; |
| + |
| +const char kPermissionErrorMessage[] = |
| + "You do not have permission to access the preference '*'. " |
| + "Be sure to declare in your manifest what permissions you need."; |
| + |
| +} |
|
battre
2011/06/06 23:45:13
nit: // namespace extension_preference_api_constan
Bernhard Bauer
2011/06/07 13:48:13
Done.
|
| + |