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

Side by Side Diff: chrome/browser/ui/webui/downloads_ui_browsertest.cc

Issue 316863002: Rename "managed (mode|user)" to "supervised user" (part 1) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 6 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
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/browser/ui/webui/downloads_ui_browsertest.h" 5 #include "chrome/browser/ui/webui/downloads_ui_browsertest.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/prefs/pref_service.h" 8 #include "base/prefs/pref_service.h"
9 #include "chrome/browser/managed_mode/managed_user_service.h" 9 #include "chrome/browser/managed_mode/managed_user_service.h"
10 #include "chrome/browser/managed_mode/managed_user_service_factory.h" 10 #include "chrome/browser/managed_mode/managed_user_service_factory.h"
11 #include "chrome/browser/profiles/profile.h" 11 #include "chrome/browser/profiles/profile.h"
12 #include "chrome/browser/ui/browser.h" 12 #include "chrome/browser/ui/browser.h"
13 #include "chrome/common/chrome_switches.h" 13 #include "chrome/common/chrome_switches.h"
14 #include "chrome/common/pref_names.h" 14 #include "chrome/common/pref_names.h"
15 #include "content/public/test/test_utils.h" 15 #include "content/public/test/test_utils.h"
16 16
17 DownloadsUIBrowserTest::DownloadsUIBrowserTest() {} 17 DownloadsUIBrowserTest::DownloadsUIBrowserTest() {}
18 18
19 DownloadsUIBrowserTest::~DownloadsUIBrowserTest() {} 19 DownloadsUIBrowserTest::~DownloadsUIBrowserTest() {}
20 20
21 void DownloadsUIBrowserTest::SetDeleteAllowed(bool allowed) { 21 void DownloadsUIBrowserTest::SetDeleteAllowed(bool allowed) {
22 browser()->profile()->GetPrefs()-> 22 browser()->profile()->GetPrefs()->
23 SetBoolean(prefs::kAllowDeletingBrowserHistory, allowed); 23 SetBoolean(prefs::kAllowDeletingBrowserHistory, allowed);
24 } 24 }
25 25
26 void DownloadsWebUIForSupervisedUsersTest::SetUpCommandLine( 26 void DownloadsWebUIForSupervisedUsersTest::SetUpCommandLine(
27 CommandLine* command_line) { 27 CommandLine* command_line) {
28 command_line->AppendSwitchASCII(switches::kManagedUserId, "asdf"); 28 command_line->AppendSwitchASCII(switches::kSupervisedUserId, "asdf");
29 } 29 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/downloads_ui.cc ('k') | chrome/browser/ui/webui/extensions/extension_settings_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698