Chromium Code Reviews| Index: chrome/test/data/webui/history_ui_browsertest.cc |
| =================================================================== |
| --- chrome/test/data/webui/history_ui_browsertest.cc (revision 0) |
| +++ chrome/test/data/webui/history_ui_browsertest.cc (revision 0) |
| @@ -0,0 +1,21 @@ |
| +// Copyright (c) 2013 The Chromium Authors. All rights reserved. |
|
Patrick Dubroy
2013/04/18 14:15:19
Ditto on the "(c)"
|
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#include "chrome/test/data/webui/history_ui_browsertest.h" |
| + |
| +#include "base/prefs/pref_service.h" |
| +#include "chrome/browser/profiles/profile.h" |
| +#include "chrome/browser/ui/browser.h" |
| +#include "chrome/common/pref_names.h" |
| + |
| +HistoryUIBrowserTest::HistoryUIBrowserTest() { |
| +} |
| + |
| +HistoryUIBrowserTest::~HistoryUIBrowserTest() { |
| +} |
| + |
| +void HistoryUIBrowserTest::SetDeleteAllowed(bool allowed) { |
| + browser()->profile()->GetPrefs()-> |
| + SetBoolean(prefs::kAllowDeletingBrowserHistory, allowed); |
| +} |
| Property changes on: chrome\test\data\webui\history_ui_browsertest.cc |
| ___________________________________________________________________ |
| Added: svn:eol-style |
| + LF |