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

Side by Side Diff: chrome/browser/extensions/api/tab_capture/tab_capture_api.cc

Issue 635573005: Cleanup: Better constify some strings in chrome/browser/{chromeos,extensions}. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase, nit 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
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 // Implements the Chrome Extensions Tab Capture API. 5 // Implements the Chrome Extensions Tab Capture API.
6 6
7 #include "chrome/browser/extensions/api/tab_capture/tab_capture_api.h" 7 #include "chrome/browser/extensions/api/tab_capture/tab_capture_api.h"
8 8
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 "Extension has not been invoked for the current page (see activeTab " 44 "Extension has not been invoked for the current page (see activeTab "
45 "permission). Chrome pages cannot be captured."; 45 "permission). Chrome pages cannot be captured.";
46 46
47 // Keys/values for media stream constraints. 47 // Keys/values for media stream constraints.
48 const char kMediaStreamSource[] = "chromeMediaSource"; 48 const char kMediaStreamSource[] = "chromeMediaSource";
49 const char kMediaStreamSourceId[] = "chromeMediaSourceId"; 49 const char kMediaStreamSourceId[] = "chromeMediaSourceId";
50 const char kMediaStreamSourceTab[] = "tab"; 50 const char kMediaStreamSourceTab[] = "tab";
51 51
52 // Whitelisted extensions that do not check for a browser action grant because 52 // Whitelisted extensions that do not check for a browser action grant because
53 // they provide API's. 53 // they provide API's.
54 const char* whitelisted_extensions[] = { 54 const char* const whitelisted_extensions[] = {
55 "enhhojjnijigcajfphajepfemndkmdlo", // Dev 55 "enhhojjnijigcajfphajepfemndkmdlo", // Dev
56 "pkedcjkdefgpdelpbcmbmeomcjbeemfm", // Trusted Tester 56 "pkedcjkdefgpdelpbcmbmeomcjbeemfm", // Trusted Tester
57 "fmfcbgogabcbclcofgocippekhfcmgfj", // Staging 57 "fmfcbgogabcbclcofgocippekhfcmgfj", // Staging
58 "hfaagokkkhdbgiakmmlclaapfelnkoah", // Canary 58 "hfaagokkkhdbgiakmmlclaapfelnkoah", // Canary
59 "F155646B5D1CA545F7E1E4E20D573DFDD44C2540", // Trusted Tester (public) 59 "F155646B5D1CA545F7E1E4E20D573DFDD44C2540", // Trusted Tester (public)
60 "16CA7A47AAE4BE49B1E75A6B960C3875E945B264" // Release 60 "16CA7A47AAE4BE49B1E75A6B960C3875E945B264" // Release
61 }; 61 };
62 62
63 } // namespace 63 } // namespace
64 64
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 extensions::TabCaptureRegistry* registry = 162 extensions::TabCaptureRegistry* registry =
163 extensions::TabCaptureRegistry::Get(GetProfile()); 163 extensions::TabCaptureRegistry::Get(GetProfile());
164 base::ListValue* const list = new base::ListValue(); 164 base::ListValue* const list = new base::ListValue();
165 if (registry) 165 if (registry)
166 registry->GetCapturedTabs(extension()->id(), list); 166 registry->GetCapturedTabs(extension()->id(), list);
167 SetResult(list); 167 SetResult(list);
168 return true; 168 return true;
169 } 169 }
170 170
171 } // namespace extensions 171 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698