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

Side by Side Diff: chrome/browser/media_galleries/fileapi/safe_iapps_library_parser.cc

Issue 2133083002: Remove all remaining traces of MessageLoopProxy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "chrome/browser/media_galleries/fileapi/safe_iapps_library_parser.h" 5 #include "chrome/browser/media_galleries/fileapi/safe_iapps_library_parser.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 #include "chrome/browser/media_galleries/fileapi/media_file_system_backend.h" 10 #include "chrome/browser/media_galleries/fileapi/media_file_system_backend.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 base::Bind(&SafeIAppsLibraryParser::StartProcessOnIOThread, this)); 53 base::Bind(&SafeIAppsLibraryParser::StartProcessOnIOThread, this));
54 } 54 }
55 55
56 SafeIAppsLibraryParser::~SafeIAppsLibraryParser() {} 56 SafeIAppsLibraryParser::~SafeIAppsLibraryParser() {}
57 57
58 void SafeIAppsLibraryParser::StartProcessOnIOThread() { 58 void SafeIAppsLibraryParser::StartProcessOnIOThread() {
59 DCHECK_CURRENTLY_ON(BrowserThread::IO); 59 DCHECK_CURRENTLY_ON(BrowserThread::IO);
60 DCHECK_EQ(INITIAL_STATE, parser_state_); 60 DCHECK_EQ(INITIAL_STATE, parser_state_);
61 61
62 scoped_refptr<base::SingleThreadTaskRunner> task_runner = 62 scoped_refptr<base::SingleThreadTaskRunner> task_runner =
63 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO); 63 BrowserThread::GetTaskRunnerForThread(BrowserThread::IO);
64 utility_process_host_ = 64 utility_process_host_ =
65 UtilityProcessHost::Create(this, task_runner.get())->AsWeakPtr(); 65 UtilityProcessHost::Create(this, task_runner.get())->AsWeakPtr();
66 utility_process_host_->SetName(l10n_util::GetStringUTF16( 66 utility_process_host_->SetName(l10n_util::GetStringUTF16(
67 IDS_UTILITY_PROCESS_MEDIA_LIBRARY_FILE_CHECKER_NAME)); 67 IDS_UTILITY_PROCESS_MEDIA_LIBRARY_FILE_CHECKER_NAME));
68 utility_process_host_->Send(new ChromeUtilityMsg_ParseITunesLibraryXmlFile( 68 utility_process_host_->Send(new ChromeUtilityMsg_ParseITunesLibraryXmlFile(
69 IPC::TakePlatformFileForTransit(std::move(library_file_)))); 69 IPC::TakePlatformFileForTransit(std::move(library_file_))));
70 70
71 parser_state_ = STARTED_PARSING_STATE; 71 parser_state_ = STARTED_PARSING_STATE;
72 } 72 }
73 73
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 bool handled = true; 105 bool handled = true;
106 IPC_BEGIN_MESSAGE_MAP(SafeIAppsLibraryParser, message) 106 IPC_BEGIN_MESSAGE_MAP(SafeIAppsLibraryParser, message)
107 IPC_MESSAGE_HANDLER(ChromeUtilityHostMsg_GotITunesLibrary, 107 IPC_MESSAGE_HANDLER(ChromeUtilityHostMsg_GotITunesLibrary,
108 OnGotITunesLibrary) 108 OnGotITunesLibrary)
109 IPC_MESSAGE_UNHANDLED(handled = false) 109 IPC_MESSAGE_UNHANDLED(handled = false)
110 IPC_END_MESSAGE_MAP() 110 IPC_END_MESSAGE_MAP()
111 return handled; 111 return handled;
112 } 112 }
113 113
114 } // namespace iapps 114 } // namespace iapps
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698