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

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

Issue 55133005: Remove EnableZygote API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove unused |use_linux_zygote_| member variable. Created 7 years, 1 month 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 | Annotate | Revision Log
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_itunes_pref_parser_win.h" 5 #include "chrome/browser/media_galleries/fileapi/safe_itunes_pref_parser_win.h"
6 6
7 #include "chrome/common/chrome_utility_messages.h" 7 #include "chrome/common/chrome_utility_messages.h"
8 #include "content/public/browser/browser_thread.h" 8 #include "content/public/browser/browser_thread.h"
9 #include "content/public/browser/utility_process_host.h" 9 #include "content/public/browser/utility_process_host.h"
10 10
(...skipping 22 matching lines...) Expand all
33 33
34 SafeITunesPrefParserWin::~SafeITunesPrefParserWin() { 34 SafeITunesPrefParserWin::~SafeITunesPrefParserWin() {
35 } 35 }
36 36
37 void SafeITunesPrefParserWin::StartWorkOnIOThread() { 37 void SafeITunesPrefParserWin::StartWorkOnIOThread() {
38 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); 38 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
39 DCHECK_EQ(INITIAL_STATE, parser_state_); 39 DCHECK_EQ(INITIAL_STATE, parser_state_);
40 40
41 UtilityProcessHost* host = 41 UtilityProcessHost* host =
42 UtilityProcessHost::Create(this, base::MessageLoopProxy::current()); 42 UtilityProcessHost::Create(this, base::MessageLoopProxy::current());
43 host->EnableZygote();
44 host->Send(new ChromeUtilityMsg_ParseITunesPrefXml(unsafe_xml_)); 43 host->Send(new ChromeUtilityMsg_ParseITunesPrefXml(unsafe_xml_));
45 parser_state_ = STARTED_PARSING_STATE; 44 parser_state_ = STARTED_PARSING_STATE;
46 } 45 }
47 46
48 void SafeITunesPrefParserWin::OnGotITunesDirectory( 47 void SafeITunesPrefParserWin::OnGotITunesDirectory(
49 const base::FilePath& library_file) { 48 const base::FilePath& library_file) {
50 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); 49 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
51 50
52 if (parser_state_ != STARTED_PARSING_STATE) 51 if (parser_state_ != STARTED_PARSING_STATE)
53 return; 52 return;
(...skipping 11 matching lines...) Expand all
65 bool handled = true; 64 bool handled = true;
66 IPC_BEGIN_MESSAGE_MAP(SafeITunesPrefParserWin, message) 65 IPC_BEGIN_MESSAGE_MAP(SafeITunesPrefParserWin, message)
67 IPC_MESSAGE_HANDLER(ChromeUtilityHostMsg_GotITunesDirectory, 66 IPC_MESSAGE_HANDLER(ChromeUtilityHostMsg_GotITunesDirectory,
68 OnGotITunesDirectory) 67 OnGotITunesDirectory)
69 IPC_MESSAGE_UNHANDLED(handled = false) 68 IPC_MESSAGE_UNHANDLED(handled = false)
70 IPC_END_MESSAGE_MAP() 69 IPC_END_MESSAGE_MAP()
71 return handled; 70 return handled;
72 } 71 }
73 72
74 } // namespace itunes 73 } // namespace itunes
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698