summaryrefslogtreecommitdiffstats
path: root/chrome/browser/profiles/profile.h
diff options
context:
space:
mode:
authorthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-10 23:06:18 +0000
committerthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-10 23:06:18 +0000
commit1eab794a82509763c3488c0c9a9f91a6dd7eee74 (patch)
tree0418f4c3bb3eee791f15e92af3f8a1758587e07b /chrome/browser/profiles/profile.h
parent19265e1c2bc6964292203c07967bf43b7ad2e130 (diff)
downloadchromium_src-1eab794a82509763c3488c0c9a9f91a6dd7eee74.zip
chromium_src-1eab794a82509763c3488c0c9a9f91a6dd7eee74.tar.gz
chromium_src-1eab794a82509763c3488c0c9a9f91a6dd7eee74.tar.bz2
Cleanup: Remove Profile::Deprecated::GetDefaultRequestContext() and its last caller.
BUG=none TEST=none Review URL: https://chromiumcodereview.appspot.com/10389013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@136431 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/profiles/profile.h')
-rw-r--r--chrome/browser/profiles/profile.h42
1 files changed, 7 insertions, 35 deletions
diff --git a/chrome/browser/profiles/profile.h b/chrome/browser/profiles/profile.h
index a9b5dee..e20f4f2 100644
--- a/chrome/browser/profiles/profile.h
+++ b/chrome/browser/profiles/profile.h
@@ -13,7 +13,6 @@
#include "base/basictypes.h"
#include "base/hash_tables.h"
#include "base/logging.h"
-#include "chrome/browser/net/preconnect.h" // TODO: remove this.
#include "chrome/browser/net/pref_proxy_config_tracker.h"
#include "chrome/browser/ui/webui/chrome_url_data_manager_factory.h"
#include "content/public/browser/browser_context.h"
@@ -124,32 +123,6 @@ class Profile : public content::BrowserContext {
bool is_new_profile) = 0;
};
- // Whitelist access to deprecated API in order to prevent new regressions.
- class Deprecated {
- private:
- friend bool IsGoogleGAIACookieInstalled();
-
- friend class AutofillDownloadManager;
- friend class BrowserListTabContentsProvider;
- friend class MetricsService;
- friend class SafeBrowsingServiceTestHelper;
- friend class Toolbar5Importer;
- friend class TranslateManager;
- friend class android::TabContentsProvider;
- friend class chromeos::LibCrosServiceLibraryImpl;
- friend class chromeos::ResetDefaultProxyConfigServiceTask;
-
- static net::URLRequestContextGetter* GetDefaultRequestContext() {
- return Profile::GetDefaultRequestContext();
- }
- public:
- // TODO(rlp): Please do not use this function. It is a temporary fix
- // for stable. See crbug.com/125292.
- static net::URLRequestContextGetter* GetDefaultRequestContextTemporary() {
- return Profile::GetDefaultRequestContext();
- }
- };
-
// Key used to bind profile to the widget with which it is associated.
static const char* const kProfileKey;
@@ -172,6 +145,12 @@ class Profile : public content::BrowserContext {
// Returns the profile corresponding to the given WebUI.
static Profile* FromWebUI(content::WebUI* web_ui);
+ // TODO(rlp): Please do not use this function. It is a temporary fix
+ // for M19 stable. See crbug.com/125292.
+ static net::URLRequestContextGetter* GetDefaultRequestContextDeprecated() {
+ return Profile::GetDefaultRequestContext();
+ }
+
// content::BrowserContext implementation ------------------------------------
// Typesafe upcast.
@@ -406,13 +385,6 @@ class Profile : public content::BrowserContext {
// Returns whether it is a guest session.
static bool IsGuestSession();
-#ifdef UNIT_TEST
- // Use with caution. GetDefaultRequestContext may be called on any thread!
- static void set_default_request_context(net::URLRequestContextGetter* c) {
- default_request_context_ = c;
- }
-#endif
-
// Did the user restore the last session? This is set by SessionRestore.
void set_restored_last_session(bool restored_last_session) {
restored_last_session_ = restored_last_session;
@@ -429,7 +401,7 @@ class Profile : public content::BrowserContext {
}
void ResumeAccessibilityEvents() {
- DCHECK(accessibility_pause_level_ > 0);
+ DCHECK_GT(accessibility_pause_level_, 0);
accessibility_pause_level_--;
}