OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/profiles/profile_impl.h" | 5 #include "chrome/browser/profiles/profile_impl.h" |
6 | 6 |
7 #include "app/resource_bundle.h" | 7 #include "app/resource_bundle.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/environment.h" | 9 #include "base/environment.h" |
10 #include "base/file_path.h" | 10 #include "base/file_path.h" |
(...skipping 1348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1359 if (!pref_proxy_config_tracker_) | 1359 if (!pref_proxy_config_tracker_) |
1360 pref_proxy_config_tracker_ = new PrefProxyConfigTracker(GetPrefs()); | 1360 pref_proxy_config_tracker_ = new PrefProxyConfigTracker(GetPrefs()); |
1361 | 1361 |
1362 return pref_proxy_config_tracker_; | 1362 return pref_proxy_config_tracker_; |
1363 } | 1363 } |
1364 | 1364 |
1365 PrerenderManager* ProfileImpl::GetPrerenderManager() { | 1365 PrerenderManager* ProfileImpl::GetPrerenderManager() { |
1366 CommandLine* cl = CommandLine::ForCurrentProcess(); | 1366 CommandLine* cl = CommandLine::ForCurrentProcess(); |
1367 if (!cl->HasSwitch(switches::kEnablePagePrerender)) | 1367 if (!cl->HasSwitch(switches::kEnablePagePrerender)) |
1368 return NULL; | 1368 return NULL; |
1369 if (!prerender_manager_.get()) | 1369 if (!prerender_manager_) |
1370 prerender_manager_.reset(new PrerenderManager(this)); | 1370 prerender_manager_ = new PrerenderManager(this); |
1371 return prerender_manager_.get(); | 1371 return prerender_manager_; |
1372 } | 1372 } |
OLD | NEW |