Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Side by Side Diff: chrome/test/data/webui/history_ui_browsertest.cc

Issue 14046016: History UI: Apply the pref that prohibits deleting browsing and download history. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Remove executable flag Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
Patrick Dubroy 2013/04/18 14:15:19 Ditto on the "(c)"
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "chrome/test/data/webui/history_ui_browsertest.h"
6
7 #include "base/prefs/pref_service.h"
8 #include "chrome/browser/profiles/profile.h"
9 #include "chrome/browser/ui/browser.h"
10 #include "chrome/common/pref_names.h"
11
12 HistoryUIBrowserTest::HistoryUIBrowserTest() {
13 }
14
15 HistoryUIBrowserTest::~HistoryUIBrowserTest() {
16 }
17
18 void HistoryUIBrowserTest::SetDeleteAllowed(bool allowed) {
19 browser()->profile()->GetPrefs()->
20 SetBoolean(prefs::kAllowDeletingBrowserHistory, allowed);
21 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698