Add support for managed profile configuration

- Add framework for reading and enforcing managed profile restrictions.
- Implement enforcement of search engine restriction.
- Add automated test for search engine restriction.

(cherry-picked from 4688934c52fa74e0c4280e4105e644f10221a8ed)

Change-Id: Ifb6018df584fedba42e86ab35d9bfa53b4d36ebe
diff --git a/src/com/android/browser/Browser.java b/src/com/android/browser/Browser.java
index bd2ac06..d1c127d 100644
--- a/src/com/android/browser/Browser.java
+++ b/src/com/android/browser/Browser.java
@@ -40,10 +40,18 @@
     // Set to true to enable extra debug logging.
     final static boolean LOGD_ENABLED = true;
 
+    private static Context mContext;
+
+    public static Context getContext() {
+        return mContext;
+    }
+
     @Override
     public void onCreate() {
         super.onCreate();
 
+        mContext = this;
+
         if (LOGV_ENABLED) {
             Log.v(LOGTAG, "Browser.onCreate: this=" + this);
         }