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

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

Issue 1658793002: Update chrome for new prefs location. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
« no previous file with comments | « chrome/test/base/ui_test_utils.cc ('k') | chrome/test/data/webui/ntp4_browsertest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/test/data/webui/history_ui_browsertest.h" 5 #include "chrome/test/data/webui/history_ui_browsertest.h"
6 6
7 #include "base/prefs/pref_service.h"
8 #include "base/strings/utf_string_conversions.h" 7 #include "base/strings/utf_string_conversions.h"
9 #include "chrome/browser/history/history_service_factory.h" 8 #include "chrome/browser/history/history_service_factory.h"
10 #include "chrome/browser/profiles/profile.h" 9 #include "chrome/browser/profiles/profile.h"
11 #include "chrome/browser/ui/browser.h" 10 #include "chrome/browser/ui/browser.h"
12 #include "chrome/common/pref_names.h" 11 #include "chrome/common/pref_names.h"
13 #include "chrome/test/base/ui_test_utils.h" 12 #include "chrome/test/base/ui_test_utils.h"
14 #include "components/history/core/browser/history_service.h" 13 #include "components/history/core/browser/history_service.h"
14 #include "components/prefs/pref_service.h"
15 15
16 HistoryUIBrowserTest::HistoryUIBrowserTest() 16 HistoryUIBrowserTest::HistoryUIBrowserTest()
17 : history_(NULL), 17 : history_(NULL),
18 baseline_time_(base::Time::Now().LocalMidnight()), 18 baseline_time_(base::Time::Now().LocalMidnight()),
19 nav_entry_id_(0) { 19 nav_entry_id_(0) {
20 } 20 }
21 21
22 HistoryUIBrowserTest::~HistoryUIBrowserTest() { 22 HistoryUIBrowserTest::~HistoryUIBrowserTest() {
23 } 23 }
24 24
(...skipping 21 matching lines...) Expand all
46 void HistoryUIBrowserTest::SetDeleteAllowed(bool allowed) { 46 void HistoryUIBrowserTest::SetDeleteAllowed(bool allowed) {
47 browser()->profile()->GetPrefs()-> 47 browser()->profile()->GetPrefs()->
48 SetBoolean(prefs::kAllowDeletingBrowserHistory, allowed); 48 SetBoolean(prefs::kAllowDeletingBrowserHistory, allowed);
49 } 49 }
50 50
51 void HistoryUIBrowserTest::ClearAcceptLanguages() { 51 void HistoryUIBrowserTest::ClearAcceptLanguages() {
52 browser()->profile()->GetPrefs()-> 52 browser()->profile()->GetPrefs()->
53 SetString(prefs::kAcceptLanguages, ""); 53 SetString(prefs::kAcceptLanguages, "");
54 } 54 }
55 55
OLDNEW
« no previous file with comments | « chrome/test/base/ui_test_utils.cc ('k') | chrome/test/data/webui/ntp4_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698