| Index: chrome/browser/extensions/api/media_galleries_private/media_galleries_private_api.cc
|
| diff --git a/chrome/browser/extensions/api/media_galleries_private/media_galleries_private_api.cc b/chrome/browser/extensions/api/media_galleries_private/media_galleries_private_api.cc
|
| index e0147dca24c0d0dcbd562dbdbe867ceced77c161..f5801f09243df09e7bf1d7f85292ed21a22d2a56 100644
|
| --- a/chrome/browser/extensions/api/media_galleries_private/media_galleries_private_api.cc
|
| +++ b/chrome/browser/extensions/api/media_galleries_private/media_galleries_private_api.cc
|
| @@ -47,7 +47,7 @@ const char kInvalidGalleryIDError[] = "Invalid gallery ID";
|
| // Handles the profile shutdown event on the file thread to clean up
|
| // GalleryWatchManager.
|
| void HandleProfileShutdownOnFileThread(void* profile_id) {
|
| - DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::FILE));
|
| + DCHECK_CURRENTLY_ON(content::BrowserThread::FILE);
|
| GalleryWatchManager::OnProfileShutdown(profile_id);
|
| }
|
|
|
| @@ -161,7 +161,7 @@ MediaGalleriesPrivateAddGalleryWatchFunction::
|
|
|
| bool MediaGalleriesPrivateAddGalleryWatchFunction::RunImpl() {
|
| DCHECK(GetProfile());
|
| - DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI));
|
| + DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
|
| if (!render_view_host() || !render_view_host()->GetProcess())
|
| return false;
|
|
|
| @@ -220,7 +220,7 @@ void MediaGalleriesPrivateAddGalleryWatchFunction::OnPreferencesInit(
|
| void MediaGalleriesPrivateAddGalleryWatchFunction::HandleResponse(
|
| MediaGalleryPrefId gallery_id,
|
| bool success) {
|
| - DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI));
|
| + DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
|
| media_galleries_private::AddGalleryWatchResult result;
|
| result.gallery_id = base::Uint64ToString(gallery_id);
|
| result.success = success;
|
| @@ -246,7 +246,7 @@ MediaGalleriesPrivateRemoveGalleryWatchFunction::
|
| }
|
|
|
| bool MediaGalleriesPrivateRemoveGalleryWatchFunction::RunImpl() {
|
| - DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI));
|
| + DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
|
| if (!render_view_host() || !render_view_host()->GetProcess())
|
| return false;
|
|
|
| @@ -305,7 +305,7 @@ MediaGalleriesPrivateGetAllGalleryWatchFunction::
|
| }
|
|
|
| bool MediaGalleriesPrivateGetAllGalleryWatchFunction::RunImpl() {
|
| - DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI));
|
| + DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
|
| if (!render_view_host() || !render_view_host()->GetProcess())
|
| return false;
|
|
|
| @@ -343,7 +343,7 @@ MediaGalleriesPrivateRemoveAllGalleryWatchFunction::
|
| }
|
|
|
| bool MediaGalleriesPrivateRemoveAllGalleryWatchFunction::RunImpl() {
|
| - DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI));
|
| + DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
|
| if (!render_view_host() || !render_view_host()->GetProcess())
|
| return false;
|
|
|
| @@ -378,7 +378,7 @@ MediaGalleriesPrivateGetHandlersFunction::
|
| }
|
|
|
| bool MediaGalleriesPrivateGetHandlersFunction::RunImpl() {
|
| - DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI));
|
| + DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
|
|
|
| ExtensionService* service =
|
| extensions::ExtensionSystem::Get(GetProfile())->extension_service();
|
|
|