summaryrefslogtreecommitdiffstats
path: root/chrome/test/testing_profile.cc
diff options
context:
space:
mode:
authorsky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-09-19 18:33:48 +0000
committersky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-09-19 18:33:48 +0000
commit848cd05ed947f5939df4cd6028aad4e068484c23 (patch)
treefda36e250d3d83fbcb58e57b950aba56f090c575 /chrome/test/testing_profile.cc
parentb988fe4ded9067b2e5cb7e3a3937036ce2cb09c8 (diff)
downloadchromium_src-848cd05ed947f5939df4cd6028aad4e068484c23.zip
chromium_src-848cd05ed947f5939df4cd6028aad4e068484c23.tar.gz
chromium_src-848cd05ed947f5939df4cd6028aad4e068484c23.tar.bz2
Changes the bookmark model to allow more than one bookmark to
reference the same url. Clicking the star button edits the most recently added bookmark for the URL. Dragging a button/star always does a move, otherwise drops on the bookmark bar create a new bookmark. Also changed the add page context menu for the bookmark bar to remember where you invoked it from. BUG=1173228 1678 Review URL: http://codereview.chromium.org/3203 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2413 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/testing_profile.cc')
-rw-r--r--chrome/test/testing_profile.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/chrome/test/testing_profile.cc b/chrome/test/testing_profile.cc
index 59cf5a5..272f94c 100644
--- a/chrome/test/testing_profile.cc
+++ b/chrome/test/testing_profile.cc
@@ -4,6 +4,7 @@
#include "chrome/test/testing_profile.h"
+#include "base/string_util.h"
#include "chrome/browser/history/history_backend.h"
#include "chrome/common/chrome_constants.h"
@@ -49,6 +50,14 @@ TestingProfile::TestingProfile()
file_util::CreateDirectory(path_);
}
+TestingProfile::TestingProfile(int count)
+ : start_time_(Time::Now()), has_history_service_(false) {
+ PathService::Get(base::DIR_TEMP, &path_);
+ file_util::AppendToPath(&path_, L"TestingProfilePath" + IntToWString(count));
+ file_util::Delete(path_, true);
+ file_util::CreateDirectory(path_);
+}
+
TestingProfile::~TestingProfile() {
DestroyHistoryService();
file_util::Delete(path_, true);