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

Unified Diff: chrome/browser/media_galleries/fileapi/picasa/picasa_finder.cc

Issue 23499006: Media Galleries API Picasa: Add file watch to invalidate database data on disk write. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/media_galleries/fileapi/picasa/picasa_finder.cc
diff --git a/chrome/browser/media_galleries/fileapi/picasa/picasa_finder.cc b/chrome/browser/media_galleries/fileapi/picasa/picasa_finder.cc
index 400eef1af072eb56741eed194c63a5e5e2abb2a0..85b055be0c2f04941754ab4289df8ba303a7f5cb 100644
--- a/chrome/browser/media_galleries/fileapi/picasa/picasa_finder.cc
+++ b/chrome/browser/media_galleries/fileapi/picasa/picasa_finder.cc
@@ -9,6 +9,7 @@
#include "base/file_util.h"
#include "base/path_service.h"
#include "chrome/browser/storage_monitor/storage_info.h"
+#include "chrome/common/media_galleries/picasa_types.h"
#include "content/public/browser/browser_thread.h"
namespace picasa {
@@ -33,7 +34,8 @@ base::FilePath FindPicasaDatabaseOnFileThread() {
return base::FilePath();
#endif
- path = path.AppendASCII("Google").AppendASCII("Picasa2").AppendASCII("db3");
+ path = path.AppendASCII("Google").AppendASCII("Picasa2")
+ .AppendASCII(kPicasaDatabaseDirName);
vandebo (ex-Chrome) 2013/09/05 16:49:38 nit: I would line this up with the AppendASCII on
tommycli 2013/09/05 21:37:37 Done.
// Verify actual existence
if (!base::DirectoryExists(path))
@@ -50,7 +52,7 @@ void FinishOnOriginalThread(const PicasaFinder::DeviceIDCallback& callback,
database_path.AsUTF8Unsafe()));
}
-}
+} // namespace
void PicasaFinder::FindPicasaDatabase(
const PicasaFinder::DeviceIDCallback& callback) {

Powered by Google App Engine
This is Rietveld 408576698