diff options
author | sky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-16 15:43:12 +0000 |
---|---|---|
committer | sky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-16 15:43:12 +0000 |
commit | 151e7e7c5150adee1a6a680d0bee40c92776acd1 (patch) | |
tree | 5dbc51d6c492b24d4cbf7e17fa4a9ac9c091dd16 /chrome/test/testing_profile.h | |
parent | 4a9f0b17e67d703fa81deeafbd6612fba0d1eba2 (diff) | |
download | chromium_src-151e7e7c5150adee1a6a680d0bee40c92776acd1.zip chromium_src-151e7e7c5150adee1a6a680d0bee40c92776acd1.tar.gz chromium_src-151e7e7c5150adee1a6a680d0bee40c92776acd1.tar.bz2 |
Makes the following changes to the bookmark bar context menu:
. Nukes the open menu item.
. Adds open incognito and for folders open all incognito.
BUG=144
TEST=Fully test the context menu of bookmark folders/urls.
Review URL: http://codereview.chromium.org/7357
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3464 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/testing_profile.h')
-rw-r--r-- | chrome/test/testing_profile.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/chrome/test/testing_profile.h b/chrome/test/testing_profile.h index 892d357..dbbda33 100644 --- a/chrome/test/testing_profile.h +++ b/chrome/test/testing_profile.h @@ -50,8 +50,12 @@ class TestingProfile : public Profile { virtual std::wstring GetPath() { return path_; } + // Sets whether we're off the record. Default is false. + void set_off_the_record(bool off_the_record) { + off_the_record_ = off_the_record; + } virtual bool IsOffTheRecord() { - return false; + return off_the_record_; } virtual Profile* GetOffTheRecordProfile() { return NULL; @@ -179,6 +183,8 @@ class TestingProfile : public Profile { bool has_history_service_; std::wstring id_; + + bool off_the_record_; }; #endif // CHROME_TEST_TESTING_PROFILE_H__ |