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

Side by Side Diff: chrome/browser/ui/webui/downloads_ui.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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.h" 5 #include "chrome/browser/ui/webui/downloads_ui.h"
6 6
7 #include "base/memory/ref_counted_memory.h" 7 #include "base/memory/ref_counted_memory.h"
8 #include "base/memory/singleton.h" 8 #include "base/memory/singleton.h"
9 #include "base/prefs/pref_service.h" 9 #include "base/prefs/pref_service.h"
10 #include "base/strings/string_piece.h" 10 #include "base/strings/string_piece.h"
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 source->AddLocalizedString("control_cancel", IDS_DOWNLOAD_LINK_CANCEL); 75 source->AddLocalizedString("control_cancel", IDS_DOWNLOAD_LINK_CANCEL);
76 source->AddLocalizedString("control_resume", IDS_DOWNLOAD_LINK_RESUME); 76 source->AddLocalizedString("control_resume", IDS_DOWNLOAD_LINK_RESUME);
77 source->AddLocalizedString("control_removefromlist", 77 source->AddLocalizedString("control_removefromlist",
78 IDS_DOWNLOAD_LINK_REMOVE); 78 IDS_DOWNLOAD_LINK_REMOVE);
79 source->AddLocalizedString("control_by_extension", 79 source->AddLocalizedString("control_by_extension",
80 IDS_DOWNLOAD_BY_EXTENSION); 80 IDS_DOWNLOAD_BY_EXTENSION);
81 81
82 PrefService* prefs = profile->GetPrefs(); 82 PrefService* prefs = profile->GetPrefs();
83 source->AddBoolean("allow_deleting_history", 83 source->AddBoolean("allow_deleting_history",
84 prefs->GetBoolean(prefs::kAllowDeletingBrowserHistory)); 84 prefs->GetBoolean(prefs::kAllowDeletingBrowserHistory));
85 source->AddBoolean("show_delete_history", !profile->IsManaged()); 85 source->AddBoolean("show_delete_history", !profile->IsSupervised());
86 86
87 source->SetJsonPath("strings.js"); 87 source->SetJsonPath("strings.js");
88 source->AddResourcePath("downloads.css", IDR_DOWNLOADS_CSS); 88 source->AddResourcePath("downloads.css", IDR_DOWNLOADS_CSS);
89 source->AddResourcePath("downloads.js", IDR_DOWNLOADS_JS); 89 source->AddResourcePath("downloads.js", IDR_DOWNLOADS_JS);
90 source->SetDefaultResource(IDR_DOWNLOADS_HTML); 90 source->SetDefaultResource(IDR_DOWNLOADS_HTML);
91 source->SetUseJsonJSFormatV2(); 91 source->SetUseJsonJSFormatV2();
92 92
93 return source; 93 return source;
94 } 94 }
95 95
(...skipping 20 matching lines...) Expand all
116 content::URLDataSource::Add(profile, theme); 116 content::URLDataSource::Add(profile, theme);
117 #endif 117 #endif
118 } 118 }
119 119
120 // static 120 // static
121 base::RefCountedMemory* DownloadsUI::GetFaviconResourceBytes( 121 base::RefCountedMemory* DownloadsUI::GetFaviconResourceBytes(
122 ui::ScaleFactor scale_factor) { 122 ui::ScaleFactor scale_factor) {
123 return ResourceBundle::GetSharedInstance(). 123 return ResourceBundle::GetSharedInstance().
124 LoadDataResourceBytesForScale(IDR_DOWNLOADS_FAVICON, scale_factor); 124 LoadDataResourceBytesForScale(IDR_DOWNLOADS_FAVICON, scale_factor);
125 } 125 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/profiles/profile_chooser_view.cc ('k') | chrome/browser/ui/webui/downloads_ui_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698