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

Unified Diff: content/browser/dom_storage/local_storage_context_mojo.h

Issue 2767103002: Fix localstorage data migration. (Closed)
Patch Set: share one encoding function Created 3 years, 9 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: content/browser/dom_storage/local_storage_context_mojo.h
diff --git a/content/browser/dom_storage/local_storage_context_mojo.h b/content/browser/dom_storage/local_storage_context_mojo.h
index 62257b85163f035c8168bfdc339457a9178f9d44..b25b30c2e52a9333bdd45ebca1740ea7e8f10f20 100644
--- a/content/browser/dom_storage/local_storage_context_mojo.h
+++ b/content/browser/dom_storage/local_storage_context_mojo.h
@@ -51,6 +51,9 @@ class CONTENT_EXPORT LocalStorageContextMojo {
leveldb::mojom::LevelDBDatabaseAssociatedRequest DatabaseRequestForTesting();
+ // Converts a string from the old storage format to the new storage format.
+ static std::vector<uint8_t> MigrateString(const base::string16& input);
+
private:
friend class MojoDOMStorageBrowserTest;
« no previous file with comments | « content/browser/dom_storage/dom_storage_browsertest.cc ('k') | content/browser/dom_storage/local_storage_context_mojo.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698