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

Side by Side Diff: chrome/utility/extensions/extensions_handler.cc

Issue 2697463002: Convert utility process extension Unpacker IPC to mojo (Closed)
Patch Set: Take #4, declare the IPC enum traits in the message file, try build fix. Created 3 years, 9 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/utility/extensions/extensions_handler.h" 5 #include "chrome/utility/extensions/extensions_handler.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 #endif // defined(OS_WIN) 169 #endif // defined(OS_WIN)
170 170
171 } // namespace 171 } // namespace
172 172
173 namespace extensions { 173 namespace extensions {
174 174
175 ExtensionsHandler::ExtensionsHandler() { 175 ExtensionsHandler::ExtensionsHandler() {
176 ExtensionsClient::Set(ChromeExtensionsClient::GetInstance()); 176 ExtensionsClient::Set(ChromeExtensionsClient::GetInstance());
177 } 177 }
178 178
179 ExtensionsHandler::~ExtensionsHandler() { 179 ExtensionsHandler::~ExtensionsHandler() = default;
180 }
181 180
182 // static 181 // static
183 void ExtensionsHandler::PreSandboxStartup() { 182 void ExtensionsHandler::PreSandboxStartup() {
184 // Initialize media libraries for media file validation. 183 // Initialize media libraries for media file validation.
185 media::InitializeMediaLibrary(); 184 media::InitializeMediaLibrary();
186 } 185 }
187 186
188 // static 187 // static
189 void ExtensionsHandler::ExposeInterfacesToBrowser( 188 void ExtensionsHandler::ExposeInterfacesToBrowser(
190 service_manager::InterfaceRegistry* registry, 189 service_manager::InterfaceRegistry* registry,
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 picasa::PicasaAlbumsIndexer indexer(album_uids); 281 picasa::PicasaAlbumsIndexer indexer(album_uids);
283 indexer.ParseFolderINI(folders_inis); 282 indexer.ParseFolderINI(folders_inis);
284 content::UtilityThread::Get()->Send( 283 content::UtilityThread::Get()->Send(
285 new ChromeUtilityHostMsg_IndexPicasaAlbumsContents_Finished( 284 new ChromeUtilityHostMsg_IndexPicasaAlbumsContents_Finished(
286 indexer.albums_images())); 285 indexer.albums_images()));
287 content::UtilityThread::Get()->ReleaseProcessIfNeeded(); 286 content::UtilityThread::Get()->ReleaseProcessIfNeeded();
288 } 287 }
289 #endif // defined(OS_WIN) || defined(OS_MACOSX) 288 #endif // defined(OS_WIN) || defined(OS_MACOSX)
290 289
291 } // namespace extensions 290 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698