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

Unified Diff: chrome/browser/ui/webui/history_ui.cc

Issue 335833003: Rename "managed (mode|user)" to "supervised user" (part 2) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review comments (+ a few other cleanups) 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/webui/history_ui.h ('k') | chrome/browser/ui/webui/options/create_profile_handler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/history_ui.cc
diff --git a/chrome/browser/ui/webui/history_ui.cc b/chrome/browser/ui/webui/history_ui.cc
index 604624c51038bb966bc8aa570c70466d9811fa2f..12b347098e5fbad52109ecfdcca5b0bf07983b05 100644
--- a/chrome/browser/ui/webui/history_ui.cc
+++ b/chrome/browser/ui/webui/history_ui.cc
@@ -58,10 +58,10 @@
#include "ui/base/resource/resource_bundle.h"
#if defined(ENABLE_MANAGED_USERS)
-#include "chrome/browser/managed_mode/managed_mode_navigation_observer.h"
-#include "chrome/browser/managed_mode/managed_mode_url_filter.h"
-#include "chrome/browser/managed_mode/managed_user_service.h"
-#include "chrome/browser/managed_mode/managed_user_service_factory.h"
+#include "chrome/browser/supervised_user/supervised_user_navigation_observer.h"
+#include "chrome/browser/supervised_user/supervised_user_service.h"
+#include "chrome/browser/supervised_user/supervised_user_service_factory.h"
+#include "chrome/browser/supervised_user/supervised_user_url_filter.h"
#endif
#if defined(OS_ANDROID)
@@ -311,7 +311,7 @@ void BrowsingHistoryHandler::HistoryEntry::SetUrlAndTitle(
scoped_ptr<base::DictionaryValue> BrowsingHistoryHandler::HistoryEntry::ToValue(
BookmarkModel* bookmark_model,
- ManagedUserService* managed_user_service,
+ SupervisedUserService* supervised_user_service,
const ProfileSyncService* sync_service) const {
scoped_ptr<base::DictionaryValue> result(new base::DictionaryValue());
SetUrlAndTitle(result.get());
@@ -365,9 +365,9 @@ scoped_ptr<base::DictionaryValue> BrowsingHistoryHandler::HistoryEntry::ToValue(
result->SetString("deviceType", device_type);
#if defined(ENABLE_MANAGED_USERS)
- if (managed_user_service) {
- const ManagedModeURLFilter* url_filter =
- managed_user_service->GetURLFilterForUIThread();
+ if (supervised_user_service) {
+ const SupervisedUserURLFilter* url_filter =
+ supervised_user_service->GetURLFilterForUIThread();
int filtering_behavior =
url_filter->GetFilteringBehaviorForURL(url.GetWithEmptyPath());
result->SetInteger("hostFilteringBehavior", filtering_behavior);
@@ -709,10 +709,11 @@ void BrowsingHistoryHandler::MergeDuplicateResults(
void BrowsingHistoryHandler::ReturnResultsToFrontEnd() {
Profile* profile = Profile::FromWebUI(web_ui());
BookmarkModel* bookmark_model = BookmarkModelFactory::GetForProfile(profile);
- ManagedUserService* managed_user_service = NULL;
+ SupervisedUserService* supervised_user_service = NULL;
#if defined(ENABLE_MANAGED_USERS)
if (profile->IsSupervised())
- managed_user_service = ManagedUserServiceFactory::GetForProfile(profile);
+ supervised_user_service =
+ SupervisedUserServiceFactory::GetForProfile(profile);
#endif
ProfileSyncService* sync_service =
ProfileSyncServiceFactory::GetInstance()->GetForProfile(profile);
@@ -741,7 +742,7 @@ void BrowsingHistoryHandler::ReturnResultsToFrontEnd() {
for (std::vector<BrowsingHistoryHandler::HistoryEntry>::iterator it =
query_results_.begin(); it != query_results_.end(); ++it) {
scoped_ptr<base::Value> value(
- it->ToValue(bookmark_model, managed_user_service, sync_service));
+ it->ToValue(bookmark_model, supervised_user_service, sync_service));
results_value.Append(value.release());
}
« no previous file with comments | « chrome/browser/ui/webui/history_ui.h ('k') | chrome/browser/ui/webui/options/create_profile_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698