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

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

Issue 2661453005: CheckMediaFile: remove utility process ReleaseProcessIfNeeded call (Closed)
Patch Set: Created 3 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/path_service.h" 10 #include "base/path_service.h"
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 89
90 void CheckMediaFile(base::TimeDelta decode_time, 90 void CheckMediaFile(base::TimeDelta decode_time,
91 base::File file, 91 base::File file,
92 const CheckMediaFileCallback& callback) override { 92 const CheckMediaFileCallback& callback) override {
93 #if !defined(MEDIA_DISABLE_FFMPEG) 93 #if !defined(MEDIA_DISABLE_FFMPEG)
94 media::MediaFileChecker checker(std::move(file)); 94 media::MediaFileChecker checker(std::move(file));
95 callback.Run(checker.Start(decode_time)); 95 callback.Run(checker.Start(decode_time));
96 #else 96 #else
97 callback.Run(false); 97 callback.Run(false);
98 #endif 98 #endif
99 ReleaseProcessIfNeeded();
100 } 99 }
101 100
102 ChromeContentUtilityClient* const utility_client_; 101 ChromeContentUtilityClient* const utility_client_;
103 102
104 DISALLOW_COPY_AND_ASSIGN(MediaParserImpl); 103 DISALLOW_COPY_AND_ASSIGN(MediaParserImpl);
105 }; 104 };
106 105
107 #if defined(OS_WIN) 106 #if defined(OS_WIN)
108 class WiFiCredentialsGetterImpl 107 class WiFiCredentialsGetterImpl
109 : public extensions::mojom::WiFiCredentialsGetter { 108 : public extensions::mojom::WiFiCredentialsGetter {
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 picasa::PicasaAlbumsIndexer indexer(album_uids); 254 picasa::PicasaAlbumsIndexer indexer(album_uids);
256 indexer.ParseFolderINI(folders_inis); 255 indexer.ParseFolderINI(folders_inis);
257 content::UtilityThread::Get()->Send( 256 content::UtilityThread::Get()->Send(
258 new ChromeUtilityHostMsg_IndexPicasaAlbumsContents_Finished( 257 new ChromeUtilityHostMsg_IndexPicasaAlbumsContents_Finished(
259 indexer.albums_images())); 258 indexer.albums_images()));
260 ReleaseProcessIfNeeded(); 259 ReleaseProcessIfNeeded();
261 } 260 }
262 #endif // defined(OS_WIN) || defined(OS_MACOSX) 261 #endif // defined(OS_WIN) || defined(OS_MACOSX)
263 262
264 } // namespace extensions 263 } // namespace extensions
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698