OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 1349 matching lines...) Loading... |
1360 if (!pref_proxy_config_tracker_) | 1360 if (!pref_proxy_config_tracker_) |
1361 pref_proxy_config_tracker_ = new PrefProxyConfigTracker(GetPrefs()); | 1361 pref_proxy_config_tracker_ = new PrefProxyConfigTracker(GetPrefs()); |
1362 | 1362 |
1363 return pref_proxy_config_tracker_; | 1363 return pref_proxy_config_tracker_; |
1364 } | 1364 } |
1365 | 1365 |
1366 PrerenderManager* ProfileImpl::GetPrerenderManager() { | 1366 PrerenderManager* ProfileImpl::GetPrerenderManager() { |
1367 CommandLine* cl = CommandLine::ForCurrentProcess(); | 1367 CommandLine* cl = CommandLine::ForCurrentProcess(); |
1368 if (!cl->HasSwitch(switches::kEnablePagePrerender)) | 1368 if (!cl->HasSwitch(switches::kEnablePagePrerender)) |
1369 return NULL; | 1369 return NULL; |
1370 if (!prerender_manager_.get()) | 1370 if (!prerender_manager_) |
1371 prerender_manager_.reset(new PrerenderManager(this)); | 1371 prerender_manager_ = new PrerenderManager(this); |
1372 return prerender_manager_.get(); | 1372 return prerender_manager_; |
1373 } | 1373 } |
OLD | NEW |