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

Unified Diff: chrome/browser/supervised_user/supervised_user_interstitial.h

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
Index: chrome/browser/supervised_user/supervised_user_interstitial.h
diff --git a/chrome/browser/managed_mode/managed_mode_interstitial.h b/chrome/browser/supervised_user/supervised_user_interstitial.h
similarity index 66%
rename from chrome/browser/managed_mode/managed_mode_interstitial.h
rename to chrome/browser/supervised_user/supervised_user_interstitial.h
index 7acc205a7aca30e75b66c1e48450eaea3522459a..b9aa7586e145a2a669c6a99a934abe3980af57b6 100644
--- a/chrome/browser/managed_mode/managed_mode_interstitial.h
+++ b/chrome/browser/supervised_user/supervised_user_interstitial.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_MANAGED_MODE_MANAGED_MODE_INTERSTITIAL_H_
-#define CHROME_BROWSER_MANAGED_MODE_MANAGED_MODE_INTERSTITIAL_H_
+#ifndef CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_INTERSTITIAL_H_
+#define CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_INTERSTITIAL_H_
#include <string>
@@ -18,20 +18,20 @@ class InterstitialPage;
class WebContents;
}
-// Delegate for an interstitial page when a page is blocked in managed mode
-// because it is not on any whitelist. It lets an authorized user preview the
-// blocked page, to decide later whether to manually allow it.
-class ManagedModeInterstitial : public content::InterstitialPageDelegate {
+// Delegate for an interstitial page when a page is blocked for a supervised
+// user because it is on a blacklist (in "allow everything" mode) or not on any
+// whitelist (in "allow only specified sites" mode).
+class SupervisedUserInterstitial : public content::InterstitialPageDelegate {
public:
static void Show(content::WebContents* web_contents,
const GURL& url,
const base::Callback<void(bool)>& callback);
private:
- ManagedModeInterstitial(content::WebContents* web_contents,
- const GURL& url,
- const base::Callback<void(bool)>& callback);
- virtual ~ManagedModeInterstitial();
+ SupervisedUserInterstitial(content::WebContents* web_contents,
+ const GURL& url,
+ const base::Callback<void(bool)>& callback);
+ virtual ~SupervisedUserInterstitial();
bool Init();
@@ -62,7 +62,7 @@ class ManagedModeInterstitial : public content::InterstitialPageDelegate {
base::Callback<void(bool)> callback_;
- DISALLOW_COPY_AND_ASSIGN(ManagedModeInterstitial);
+ DISALLOW_COPY_AND_ASSIGN(SupervisedUserInterstitial);
};
-#endif // CHROME_BROWSER_MANAGED_MODE_MANAGED_MODE_INTERSTITIAL_H_
+#endif // CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_INTERSTITIAL_H_

Powered by Google App Engine
This is Rietveld 408576698