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

Unified Diff: chrome/browser/chromeos/proxy_cros_settings_provider.cc

Issue 6292017: Extended: Add "system" URLRequestContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Chrome OS compile fix Created 9 years, 9 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/chromeos/proxy_cros_settings_provider.cc
diff --git a/chrome/browser/chromeos/proxy_cros_settings_provider.cc b/chrome/browser/chromeos/proxy_cros_settings_provider.cc
index 78489a10bc801842e28c6074d15b7e62caf47a62..1596769842a8470cb6a98cf76e92a16886732610 100644
--- a/chrome/browser/chromeos/proxy_cros_settings_provider.cc
+++ b/chrome/browser/chromeos/proxy_cros_settings_provider.cc
@@ -7,6 +7,7 @@
#include "base/command_line.h"
#include "base/string_util.h"
#include "chrome/browser/browser_list.h"
+#include "chrome/browser/browser_process.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/profiles/profile_manager.h"
Mattias Nissler (ping if slow) 2011/03/09 11:04:56 please remove the profile-related includes.
battre 2011/03/09 19:24:07 Done.
#include "chrome/common/chrome_switches.h"
@@ -292,12 +293,7 @@ bool ProxyCrosSettingsProvider::HandlesSetting(const std::string& path) {
chromeos::ProxyConfigServiceImpl*
ProxyCrosSettingsProvider::GetConfigService() const {
- Browser* browser = BrowserList::GetLastActive();
- // browser is NULL at OOBE/login stage.
- Profile* profile = browser ?
- browser->profile() :
- ProfileManager::GetDefaultProfile();
- return profile->GetChromeOSProxyConfigServiceImpl();
+ return g_browser_process->chromeos_proxy_config_service_impl();
}
void ProxyCrosSettingsProvider::AppendPortIfValid(

Powered by Google App Engine
This is Rietveld 408576698