Check useeditwarning preference before showing warning when browsing away from editor

Bug: 51057
Change-Id: Ic4b02372e6e08d3a0d36457457a2e2bbfbaa797d
Merge "Check useeditwarning preference before showing warning when browsing away from editor"