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

Side by Side Diff: extensions/common/api/runtime.json

Issue 1282263002: Restrict chrome.runtime.setUninstallURL to http(s) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Small cleanup Created 5 years, 4 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 | « extensions/browser/api/runtime/runtime_api.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 // Note: Many of these functions and events are implemented by hand and should 5 // Note: Many of these functions and events are implemented by hand and should
6 // not elicit any code generation from the schema compiler. These items are 6 // not elicit any code generation from the schema compiler. These items are
7 // marked "nocompile." 7 // marked "nocompile."
8 [ 8 [
9 { 9 {
10 "namespace": "runtime", 10 "namespace": "runtime",
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 } 184 }
185 }, 185 },
186 { 186 {
187 "name": "setUninstallURL", 187 "name": "setUninstallURL",
188 "type": "function", 188 "type": "function",
189 "description": "Sets the URL to be visited upon uninstallation. This may be used to clean up server-side data, do analytics, and implement surveys. Maxi mum 255 characters.", 189 "description": "Sets the URL to be visited upon uninstallation. This may be used to clean up server-side data, do analytics, and implement surveys. Maxi mum 255 characters.",
190 "parameters": [ 190 "parameters": [
191 { 191 {
192 "type": "string", 192 "type": "string",
193 "name": "url", 193 "name": "url",
194 "maxLength": 255 194 "maxLength": 255,
195 "description": "URL to be opened after the extension is uninstalled. This URL must have an http: or https: scheme. Set an empty string to not open a new tab upon uninstallation."
196 },
197 {
198 "type": "function",
199 "name": "callback",
200 "optional": true,
201 "description": "Called when the uninstall URL is set. If the given U RL is invalid, $(ref:runtime.lastError) will be set.",
202 "parameters": []
195 } 203 }
196 ] 204 ]
197 }, 205 },
198 { 206 {
199 "name": "reload", 207 "name": "reload",
200 "description": "Reloads the app or extension.", 208 "description": "Reloads the app or extension.",
201 "type": "function", 209 "type": "function",
202 "parameters": [] 210 "parameters": []
203 }, 211 },
204 { 212 {
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
516 { 524 {
517 "$ref": "OnRestartRequiredReason", 525 "$ref": "OnRestartRequiredReason",
518 "name": "reason", 526 "name": "reason",
519 "description": "The reason that the event is being dispatched." 527 "description": "The reason that the event is being dispatched."
520 } 528 }
521 ] 529 ]
522 } 530 }
523 ] 531 ]
524 } 532 }
525 ] 533 ]
OLDNEW
« no previous file with comments | « extensions/browser/api/runtime/runtime_api.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698