Bug 828347 - Warn if session restore is initialized with deprecated synchronous initialization. r=dteller

This commit is contained in:
Sunny 2013-01-29 10:50:04 -05:00
Родитель 0a3fe23198
Коммит 24059ed95b
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -9,6 +9,7 @@ const Cr = Components.results;
Components.utils.import("resource://gre/modules/XPCOMUtils.jsm");
Components.utils.import("resource://gre/modules/Services.jsm");
Components.utils.import("resource://gre/modules/commonjs/promise/core.js");
Components.utils.import("resource://gre/modules/Deprecated.jsm");
XPCOMUtils.defineLazyModuleGetter(this, "DeferredTask",
"resource://gre/modules/DeferredTask.jsm");
@ -3780,6 +3781,7 @@ var engineMetadataService = {
* initialization.
*/
syncInit: function epsSyncInit() {
Deprecated.warning("Search service falling back to deprecated synchronous initializer.", "https://developer.mozilla.org/en-US/docs/XPCOM_Interface_Reference/nsIBrowserSearchService#async_warning");
LOG("metadata syncInit: starting");
switch(this._initState) {
case engineMetadataService._InitStates.NOT_STARTED: