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

Side by Side Diff: chrome/browser/extensions/extension_preference_api_constants.cc

Issue 8662008: Implement chrome.systemPrivate.getIncognitoModeAvailability extension API function (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/extensions/extension_preference_api_constants.h" 5 #include "chrome/browser/extensions/extension_preference_api_constants.h"
6 6
7 namespace extension_preference_api_constants { 7 namespace extension_preference_api_constants {
8 8
9 const char kIncognitoKey[] = "incognito"; 9 const char kIncognitoKey[] = "incognito";
10 10
11 const char kScopeKey[] = "scope"; 11 const char kScopeKey[] = "scope";
12 12
13 const char kIncognitoErrorMessage[] = 13 const char kIncognitoErrorMessage[] =
14 "You do not have permission to access incognito preferences."; 14 "You do not have permission to access incognito preferences.";
15 15
16 const char kIncognitoSessionOnlyErrorMessage[] = 16 const char kIncognitoSessionOnlyErrorMessage[] =
17 "You cannot set a preference with scope 'incognito_session_only' when no " 17 "You cannot set a preference with scope 'incognito_session_only' when no "
18 "incognito window is open."; 18 "incognito window is open.";
19 19
20 const char kPermissionErrorMessage[] = 20 const char kPermissionErrorMessage[] =
21 "You do not have permission to access the preference '*'. " 21 "You do not have permission to access the preference '*'. "
22 "Be sure to declare in your manifest what permissions you need."; 22 "Be sure to declare in your manifest what permissions you need.";
23 23
24 const char kCannotModifyReadOnlyMessage[] =
25 "You cannot modify the read-only preference '*'.";
26
27 const char kInvalidParameter[] =
28 "You passed an invalid parameter.";
29
24 } // extension_preference_api_constants 30 } // extension_preference_api_constants
25 31
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698