diff options
author | finnur@chromium.org <finnur@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-25 03:00:49 +0000 |
---|---|---|
committer | finnur@chromium.org <finnur@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-25 03:00:49 +0000 |
commit | 27fbcccda73e7bd257c20f0bbf4b4c31af15c9c2 (patch) | |
tree | 1733e5af0ff85042f99f9165c93015e7df6b40c0 /chrome/browser/extensions/extension_dom_ui.cc | |
parent | a25fa87a6cf2d10414454d8b8ad75ffeb13fb2cd (diff) | |
download | chromium_src-27fbcccda73e7bd257c20f0bbf4b4c31af15c9c2.zip chromium_src-27fbcccda73e7bd257c20f0bbf4b4c31af15c9c2.tar.gz chromium_src-27fbcccda73e7bd257c20f0bbf4b4c31af15c9c2.tar.bz2 |
Ensure all callers to GetFilePath are on the File thread
by DCHECKing based on the thread type.
TEST=Extensions and automated tests should work as before
BUG=http://crbug.com/38521
Review URL: http://codereview.chromium.org/1293001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42578 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_dom_ui.cc')
-rw-r--r-- | chrome/browser/extensions/extension_dom_ui.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/extensions/extension_dom_ui.cc b/chrome/browser/extensions/extension_dom_ui.cc index 0a7e5d1..7ee7339 100644 --- a/chrome/browser/extensions/extension_dom_ui.cc +++ b/chrome/browser/extensions/extension_dom_ui.cc @@ -322,5 +322,5 @@ RefCountedMemory* ExtensionDOMUI::GetFaviconResourceBytes(Profile* profile, // TODO(arv): Move this off of the UI thread and onto the File thread. If // possible to do this asynchronously, use ImageLoadingTracker. return ReadFileData(extension->GetIconPath( - Extension::EXTENSION_ICON_BITTY).GetFilePath()); + Extension::EXTENSION_ICON_BITTY).GetFilePathOnAnyThreadHack()); } |