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

Unified Diff: chrome/browser/ui/webui/options/options_managed_banner_handler.h

Issue 7342009: Show a different banner in chrome://settings for extension-controlled settings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review Created 9 years, 5 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/ui/webui/options/options_managed_banner_handler.h
diff --git a/chrome/browser/ui/webui/options/options_managed_banner_handler.h b/chrome/browser/ui/webui/options/options_managed_banner_handler.h
deleted file mode 100644
index 95a8d2a20f4d6f167d69c1e9d788669b1774ebe6..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/webui/options/options_managed_banner_handler.h
+++ /dev/null
@@ -1,41 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_OPTIONS_MANAGED_BANNER_HANDLER_H_
-#define CHROME_BROWSER_UI_WEBUI_OPTIONS_OPTIONS_MANAGED_BANNER_HANDLER_H_
-#pragma once
-
-#include "base/basictypes.h"
-#include "base/string16.h"
-#include "chrome/browser/policy/managed_prefs_banner_base.h"
-#include "chrome/browser/ui/options/options_util.h"
-
-class WebUI;
-
-// Managed options banner handler.
-// Controls the display of a banner if an options panel contains options
-// that are under administator control.
-class OptionsManagedBannerHandler : public policy::ManagedPrefsBannerBase {
- public:
- OptionsManagedBannerHandler(WebUI* web_ui,
- const string16& page_name,
- OptionsPage page);
- virtual ~OptionsManagedBannerHandler();
-
- protected:
- // ManagedPrefsBannerBase implementation.
- virtual void OnUpdateVisibility();
-
- private:
- // Set the managed options banner to be visible or invisible.
- void SetupBannerVisibility();
-
- WebUI* web_ui_; // weak reference to the WebUI.
- string16 page_name_; // current options page name.
- OptionsPage page_; // current options page value.
-
- DISALLOW_COPY_AND_ASSIGN(OptionsManagedBannerHandler);
-};
-
-#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_OPTIONS_MANAGED_BANNER_HANDLER_H_

Powered by Google App Engine
This is Rietveld 408576698