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

Unified Diff: chrome/browser/managed_mode/managed_mode_navigation_observer.cc

Issue 15715005: Remove passphrase dialog and last parts of elevation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync Created 7 years, 7 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/managed_mode/managed_mode_navigation_observer.cc
diff --git a/chrome/browser/managed_mode/managed_mode_navigation_observer.cc b/chrome/browser/managed_mode/managed_mode_navigation_observer.cc
index 52be427ec07cb8e5dad810311b04cd02c3454249..e474b902e66e71f40f0a1be2732ddfca1d318f4f 100644
--- a/chrome/browser/managed_mode/managed_mode_navigation_observer.cc
+++ b/chrome/browser/managed_mode/managed_mode_navigation_observer.cc
@@ -162,13 +162,10 @@ ManagedModeNavigationObserver::~ManagedModeNavigationObserver() {
ManagedModeNavigationObserver::ManagedModeNavigationObserver(
content::WebContents* web_contents)
: WebContentsObserver(web_contents),
- warn_infobar_delegate_(NULL),
- is_elevated_(false) {
+ warn_infobar_delegate_(NULL) {
Profile* profile =
Profile::FromBrowserContext(web_contents->GetBrowserContext());
managed_user_service_ = ManagedUserServiceFactory::GetForProfile(profile);
- if (!managed_user_service_->ProfileIsManaged())
- is_elevated_ = true;
url_filter_ = managed_user_service_->GetURLFilterForUIThread();
}
@@ -177,22 +174,6 @@ void ManagedModeNavigationObserver::WarnInfobarDismissed() {
warn_infobar_delegate_ = NULL;
}
-bool ManagedModeNavigationObserver::is_elevated() const {
-#if defined(OS_CHROMEOS)
- return false;
-#else
- return is_elevated_;
-#endif
-}
-
-void ManagedModeNavigationObserver::set_elevated(bool is_elevated) {
-#if defined(OS_CHROMEOS)
- NOTREACHED();
-#else
- is_elevated_ = is_elevated;
-#endif
-}
-
void ManagedModeNavigationObserver::ProvisionalChangeToMainFrameUrl(
const GURL& url,
content::RenderViewHost* render_view_host) {
« no previous file with comments | « chrome/browser/managed_mode/managed_mode_navigation_observer.h ('k') | chrome/browser/managed_mode/managed_user_passphrase.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698