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

Unified Diff: storage/browser/fileapi/sandbox_prioritized_origin_database.cc

Issue 636093002: Add SandboxPrioritizedOriginDatabase support for dump_file_system (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 2 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
« no previous file with comments | « storage/browser/fileapi/sandbox_prioritized_origin_database.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: storage/browser/fileapi/sandbox_prioritized_origin_database.cc
diff --git a/storage/browser/fileapi/sandbox_prioritized_origin_database.cc b/storage/browser/fileapi/sandbox_prioritized_origin_database.cc
index 80ccd272ec57c7dbb24af471ff8219cdd58c8850..c55ad42bd710c736856946e24c44762c175e2c9a 100644
--- a/storage/browser/fileapi/sandbox_prioritized_origin_database.cc
+++ b/storage/browser/fileapi/sandbox_prioritized_origin_database.cc
@@ -5,7 +5,6 @@
#include "storage/browser/fileapi/sandbox_prioritized_origin_database.h"
#include "base/files/file.h"
-#include "base/files/file_path.h"
#include "base/files/file_util.h"
#include "base/logging.h"
#include "base/pickle.h"
@@ -14,13 +13,16 @@
namespace storage {
-namespace {
-
-const base::FilePath::CharType kPrimaryDirectory[] =
+const base::FilePath::CharType*
+SandboxPrioritizedOriginDatabase::kPrimaryDirectory =
FILE_PATH_LITERAL("primary");
-const base::FilePath::CharType kPrimaryOriginFile[] =
+
+const base::FilePath::CharType*
+SandboxPrioritizedOriginDatabase::kPrimaryOriginFile =
FILE_PATH_LITERAL("primary.origin");
+namespace {
+
bool WritePrimaryOriginFile(const base::FilePath& path,
const std::string& origin) {
base::File file(path, base::File::FLAG_OPEN_ALWAYS | base::File::FLAG_WRITE);
« no previous file with comments | « storage/browser/fileapi/sandbox_prioritized_origin_database.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698