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

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..fcec4cc457f9e372e73030f7f66790d9674156f5 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);
// 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) {
« no previous file with comments | « chrome/browser/media_galleries/fileapi/picasa/picasa_data_provider_browsertest.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698