summaryrefslogtreecommitdiffstats
path: root/components/offline_pages
diff options
context:
space:
mode:
authorfgorski <fgorski@chromium.org>2015-07-08 10:55:46 -0700
committerCommit bot <commit-bot@chromium.org>2015-07-08 17:56:22 +0000
commitbe4b966f94bef50ef9c3f745ed2c5cae0a122cae (patch)
tree84bf78eeccaa9905b0f9650c21bdae5d1b35a26b /components/offline_pages
parentef342b9c4ff55a6b827a72b9749ee54e33eeab86 (diff)
downloadchromium_src-be4b966f94bef50ef9c3f745ed2c5cae0a122cae.zip
chromium_src-be4b966f94bef50ef9c3f745ed2c5cae0a122cae.tar.gz
chromium_src-be4b966f94bef50ef9c3f745ed2c5cae0a122cae.tar.bz2
Updating type of offline page item title to base::string16
This is done, because web page titles actually come in string16. BUG=491352 Review URL: https://codereview.chromium.org/1214543002 Cr-Commit-Position: refs/heads/master@{#337856}
Diffstat (limited to 'components/offline_pages')
-rw-r--r--components/offline_pages/offline_page_item.cc4
-rw-r--r--components/offline_pages/offline_page_item.h7
2 files changed, 6 insertions, 5 deletions
diff --git a/components/offline_pages/offline_page_item.cc b/components/offline_pages/offline_page_item.cc
index 637a9b2..df8a122 100644
--- a/components/offline_pages/offline_page_item.cc
+++ b/components/offline_pages/offline_page_item.cc
@@ -18,7 +18,7 @@ OfflinePageItem::OfflinePageItem()
}
OfflinePageItem::OfflinePageItem(const GURL& url,
- const std::string& title,
+ const base::string16& title,
const base::FilePath& file_path,
int64 file_size)
: url(url),
@@ -29,7 +29,7 @@ OfflinePageItem::OfflinePageItem(const GURL& url,
}
OfflinePageItem::OfflinePageItem(const GURL& url,
- const std::string& title,
+ const base::string16& title,
const base::FilePath& file_path,
int64 file_size,
const base::Time& creation_time)
diff --git a/components/offline_pages/offline_page_item.h b/components/offline_pages/offline_page_item.h
index f00e503..65f052c 100644
--- a/components/offline_pages/offline_page_item.h
+++ b/components/offline_pages/offline_page_item.h
@@ -9,6 +9,7 @@
#include "base/basictypes.h"
#include "base/files/file_path.h"
+#include "base/strings/string16.h"
#include "base/time/time.h"
#include "url/gurl.h"
@@ -19,11 +20,11 @@ struct OfflinePageItem {
public:
OfflinePageItem();
OfflinePageItem(const GURL& url,
- const std::string& title,
+ const base::string16& title,
const base::FilePath& file_path,
int64 file_size);
OfflinePageItem(const GURL& url,
- const std::string& title,
+ const base::string16& title,
const base::FilePath& file_path,
int64 file_size,
const base::Time& creation_time);
@@ -35,7 +36,7 @@ struct OfflinePageItem {
// The URL of the page.
GURL url;
// The title of the page.
- std::string title;
+ base::string16 title;
// Version of the offline page item.
int version;
// The file path to the archive with a local copy of the page.