summaryrefslogtreecommitdiffstats
path: root/chrome/browser/history
diff options
context:
space:
mode:
authordeanm@chromium.org <deanm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-25 23:14:46 +0000
committerdeanm@chromium.org <deanm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-25 23:14:46 +0000
commit42eb6b07c2791d8d13ec48ea3c92725eee4d94a2 (patch)
tree9c72c5052409725827617584d7891f1fcd5b5c9e /chrome/browser/history
parent60aac62ddf3cc40741a824cae25ab190005513be (diff)
downloadchromium_src-42eb6b07c2791d8d13ec48ea3c92725eee4d94a2.zip
chromium_src-42eb6b07c2791d8d13ec48ea3c92725eee4d94a2.tar.gz
chromium_src-42eb6b07c2791d8d13ec48ea3c92725eee4d94a2.tar.bz2
Port some files in chrome/browser/ - part 1.
Review URL: http://codereview.chromium.org/11402 Patch from Pawel Hajdan Jr. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6007 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/history')
-rw-r--r--chrome/browser/history/download_database.cc4
-rw-r--r--chrome/browser/history/starred_url_database.cc7
2 files changed, 6 insertions, 5 deletions
diff --git a/chrome/browser/history/download_database.cc b/chrome/browser/history/download_database.cc
index 0be6c10..f1dcbce 100644
--- a/chrome/browser/history/download_database.cc
+++ b/chrome/browser/history/download_database.cc
@@ -2,11 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "chrome/browser/history/download_database.h"
+
#include <limits>
#include <vector>
-#include "chrome/browser/history/download_database.h"
-
#include "chrome/browser/download/download_manager.h"
#include "chrome/browser/history/download_types.h"
#include "chrome/common/sqlite_utils.h"
diff --git a/chrome/browser/history/starred_url_database.cc b/chrome/browser/history/starred_url_database.cc
index 9514b04..c4fabbc0 100644
--- a/chrome/browser/history/starred_url_database.cc
+++ b/chrome/browser/history/starred_url_database.cc
@@ -7,6 +7,7 @@
#include "base/file_util.h"
#include "base/logging.h"
#include "base/json_writer.h"
+#include "base/string_util.h"
#include "chrome/browser/bookmarks/bookmark_codec.h"
#include "chrome/browser/bookmarks/bookmark_model.h"
#include "chrome/browser/history/history.h"
@@ -57,7 +58,7 @@ void FillInStarredEntry(SQLStatement* s, StarredEntry* entry) {
switch (s->column_int(1)) {
case 0:
entry->type = history::StarredEntry::URL;
- entry->url = GURL(s->column_string16(6));
+ entry->url = GURL(WideToUTF8(s->column_string16(6)));
break;
case 1:
entry->type = history::StarredEntry::BOOKMARK_BAR;
@@ -487,7 +488,7 @@ bool StarredURLDatabase::EnsureStarredIntegrityImpl(
LOG(WARNING) << "Bookmark not in a bookmark folder found";
if (!Move(*i, bookmark_node))
return false;
- i = unparented_urls->erase(i);
+ unparented_urls->erase(i++);
}
}
@@ -511,7 +512,7 @@ bool StarredURLDatabase::EnsureStarredIntegrityImpl(
LOG(WARNING) << "Bookmark folder not on bookmark bar found";
if (!Move(*i, bookmark_node))
return false;
- i = roots->erase(i);
+ roots->erase(i++);
} else {
++i;
}