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

Side by Side Diff: chrome/browser/extensions/api/tabs/tabs_constants.cc

Issue 1233263002: Clean up error handling logic for extension tab muting (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: include case for TAB_MUTED_RESULT_SUCCESS first within switch to match enum order Created 5 years, 5 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 | « chrome/browser/extensions/api/tabs/tabs_constants.h ('k') | chrome/browser/ui/tabs/tab_utils.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 (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 "chrome/browser/extensions/api/tabs/tabs_constants.h" 5 #include "chrome/browser/extensions/api/tabs/tabs_constants.h"
6 6
7 namespace extensions { 7 namespace extensions {
8 namespace tabs_constants { 8 namespace tabs_constants {
9 9
10 const char kActiveKey[] = "active"; 10 const char kActiveKey[] = "active";
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 const char kIncognitoModeIsForced[] = "Incognito mode is forced. " 92 const char kIncognitoModeIsForced[] = "Incognito mode is forced. "
93 "Cannot open normal windows."; 93 "Cannot open normal windows.";
94 const char kURLsNotAllowedInIncognitoError[] = "Cannot open URL \"*\" " 94 const char kURLsNotAllowedInIncognitoError[] = "Cannot open URL \"*\" "
95 "in an incognito window."; 95 "in an incognito window.";
96 const char kInvalidUrlError[] = "Invalid url: \"*\"."; 96 const char kInvalidUrlError[] = "Invalid url: \"*\".";
97 const char kNotImplementedError[] = "This call is not yet implemented"; 97 const char kNotImplementedError[] = "This call is not yet implemented";
98 const char kSupportedInWindowsOnlyError[] = "Supported in Windows only"; 98 const char kSupportedInWindowsOnlyError[] = "Supported in Windows only";
99 const char kInvalidWindowTypeError[] = "Invalid value for type"; 99 const char kInvalidWindowTypeError[] = "Invalid value for type";
100 const char kInvalidWindowStateError[] = "Invalid value for state"; 100 const char kInvalidWindowStateError[] = "Invalid value for state";
101 const char kScreenshotsDisabled[] = "Taking screenshots has been disabled"; 101 const char kScreenshotsDisabled[] = "Taking screenshots has been disabled";
102 102 const char kCannotUpdateMuteDisabled[] =
103 "Failed to update mute state for tab *, --* must be enabled";
104 const char kCannotUpdateMuteCaptured[] =
105 "Cannot update mute state for tab *, tab has audio or video currently "
106 "being captured";
103 const char kCannotDetermineLanguageOfUnloadedTab[] = 107 const char kCannotDetermineLanguageOfUnloadedTab[] =
104 "Cannot determine language: tab not loaded"; 108 "Cannot determine language: tab not loaded";
105 109
106 } // namespace tabs_constants 110 } // namespace tabs_constants
107 } // namespace extensions 111 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/tabs/tabs_constants.h ('k') | chrome/browser/ui/tabs/tab_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698