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

Unified Diff: chrome/browser/chromeos/gdata/gdata_file_system_proxy.cc

Issue 9580016: Fixed remaining CL comments from review of http://codereview.chromium.org/9561009/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/gdata/gdata_file_system_proxy.cc
===================================================================
--- chrome/browser/chromeos/gdata/gdata_file_system_proxy.cc (revision 124690)
+++ chrome/browser/chromeos/gdata/gdata_file_system_proxy.cc (working copy)
@@ -50,10 +50,7 @@
: file_system_(file_system),
search_file_path_(search_file_path),
require_content_(require_content) {
- BrowserThread::ID thread_id;
- CHECK(BrowserThread::GetCurrentThreadIdentifier(&thread_id));
- replay_message_proxy_ =
- BrowserThread::GetMessageLoopProxyForThread(thread_id);
+ reply_message_proxy_ = MessageLoopProxy::current();
}
virtual ~FindFileDelegateReplyBase() {}
@@ -98,7 +95,7 @@
FilePath search_file_path_;
// True if the final directory content is required.
bool require_content_;
- scoped_refptr<MessageLoopProxy> replay_message_proxy_;
+ scoped_refptr<MessageLoopProxy> reply_message_proxy_;
};
// GetFileInfoDelegate is used to handle results of proxy's content search
@@ -138,7 +135,7 @@
const base::PlatformFileInfo& file_info,
const FilePath& platform_path) {
if (!callback_.is_null()) {
- replay_message_proxy_->PostTask(FROM_HERE,
+ reply_message_proxy_->PostTask(FROM_HERE,
Bind(&GetFileInfoDelegate::ReplyOnCallingThread,
this,
result,
@@ -218,7 +215,7 @@
const std::vector<base::FileUtilProxy::Entry>& file_list,
bool has_more) {
if (!callback_.is_null()) {
- replay_message_proxy_->PostTask(FROM_HERE,
+ reply_message_proxy_->PostTask(FROM_HERE,
Bind(&ReadDirectoryDelegate::ReplyOnCallingThread,
this,
result,
« no previous file with comments | « chrome/browser/chromeos/gdata/gdata_file_system.cc ('k') | chrome/browser/chromeos/gdata/gdata_file_system_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698