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

Side by Side Diff: content/browser/appcache/appcache_update_job.cc

Issue 2034663003: Remove use of deprecated MessageLoop methods in content. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 6 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 | « no previous file | content/browser/fileapi/file_system_dir_url_request_job_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "content/browser/appcache/appcache_update_job.h" 5 #include "content/browser/appcache/appcache_update_job.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/location.h"
11 #include "base/single_thread_task_runner.h"
10 #include "base/strings/string_util.h" 12 #include "base/strings/string_util.h"
11 #include "base/strings/stringprintf.h" 13 #include "base/strings/stringprintf.h"
12 #include "base/threading/thread_task_runner_handle.h" 14 #include "base/threading/thread_task_runner_handle.h"
13 #include "content/browser/appcache/appcache_group.h" 15 #include "content/browser/appcache/appcache_group.h"
14 #include "content/browser/appcache/appcache_histograms.h" 16 #include "content/browser/appcache/appcache_histograms.h"
15 #include "content/public/browser/browser_thread.h" 17 #include "content/public/browser/browser_thread.h"
16 #include "net/base/io_buffer.h" 18 #include "net/base/io_buffer.h"
17 #include "net/base/load_flags.h" 19 #include "net/base/load_flags.h"
18 #include "net/base/net_errors.h" 20 #include "net/base/net_errors.h"
19 #include "net/base/request_priority.h" 21 #include "net/base/request_priority.h"
(...skipping 1682 matching lines...) Expand 10 before | Expand all | Expand 10 after
1702 service_->RemoveObserver(this); 1704 service_->RemoveObserver(this);
1703 service_ = NULL; 1705 service_ = NULL;
1704 1706
1705 // Break the connection with the group so the group cannot call delete 1707 // Break the connection with the group so the group cannot call delete
1706 // on this object after we've posted a task to delete ourselves. 1708 // on this object after we've posted a task to delete ourselves.
1707 if (group_) { 1709 if (group_) {
1708 group_->SetUpdateAppCacheStatus(AppCacheGroup::IDLE); 1710 group_->SetUpdateAppCacheStatus(AppCacheGroup::IDLE);
1709 group_ = NULL; 1711 group_ = NULL;
1710 } 1712 }
1711 1713
1712 base::MessageLoop::current()->DeleteSoon(FROM_HERE, this); 1714 base::ThreadTaskRunnerHandle::Get()->DeleteSoon(FROM_HERE, this);
1713 } 1715 }
1714 1716
1715 } // namespace content 1717 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/browser/fileapi/file_system_dir_url_request_job_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698