| Index: chrome/utility/chrome_content_utility_client.cc
|
| diff --git a/chrome/utility/chrome_content_utility_client.cc b/chrome/utility/chrome_content_utility_client.cc
|
| index b5db0fd7eb1b5f95eadc6b500e5e45571241d3e6..66303fa33ad4d49c618e5633e08df46e0cf9ad6d 100644
|
| --- a/chrome/utility/chrome_content_utility_client.cc
|
| +++ b/chrome/utility/chrome_content_utility_client.cc
|
| @@ -43,9 +43,9 @@
|
| #endif // defined(OS_WIN)
|
|
|
| #if defined(OS_WIN) || defined(OS_MACOSX)
|
| -#include "chrome/common/media_galleries/picasa_types.h"
|
| #include "chrome/utility/itunes_library_parser.h"
|
| #include "chrome/utility/media_galleries/picasa_album_table_reader.h"
|
| +#include "chrome/utility/media_galleries/picasa_albums_indexer.h"
|
| #endif // defined(OS_WIN) || defined(OS_MACOSX)
|
|
|
| #if defined(ENABLE_PRINTING)
|
| @@ -562,6 +562,21 @@ void ChromeContentUtilityClient::OnParsePicasaPMPDatabase(
|
| reader.folders()));
|
| ReleaseProcessIfNeeded();
|
| }
|
| +
|
| +void OnIndexPicasaAlbumsContents(
|
| + const picasa::AlbumUIDSet& album_uids,
|
| + const std::vector<picasa::FolderINIContents>& folders_inis) {
|
| + picasa::PicasaAlbumsIndexer indexer(album_uids);
|
| + for (std::vector<picasa::FolderINIContents>::const_iterator it =
|
| + folders_inis.begin();
|
| + it != folders_inis.end(); ++it) {
|
| + indexer.ParseFolderINI(it->folder_path, it->ini_contents);
|
| + }
|
| +
|
| + Send(new ChromeUtilityHostMsg_IndexPicasaAlbumsContents_Finished(
|
| + indexer.albums_images()));
|
| + ReleaseProcessIfNeeded();
|
| +}
|
| #endif // defined(OS_WIN) || defined(OS_MACOSX)
|
|
|
| } // namespace chrome
|
|
|