summaryrefslogtreecommitdiffstats
path: root/chrome/browser
diff options
context:
space:
mode:
authorachuith@chromium.org <achuith@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-03 19:38:28 +0000
committerachuith@chromium.org <achuith@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-03 19:38:28 +0000
commit2ea8aa21ba17c1ae5ad6292da6d5336eb2f5187a (patch)
treebd6ccb086409ff37a309b1e10f433e99834b3977 /chrome/browser
parent745722cd68412510910fd2fd7369ec338996c4d8 (diff)
downloadchromium_src-2ea8aa21ba17c1ae5ad6292da6d5336eb2f5187a.zip
chromium_src-2ea8aa21ba17c1ae5ad6292da6d5336eb2f5187a.tar.gz
chromium_src-2ea8aa21ba17c1ae5ad6292da6d5336eb2f5187a.tar.bz2
Replace NewRunnableMethod with Bind in MobileConfig
BUG=chromium-os:22024 TEST=compiles, tests pass. Review URL: http://codereview.chromium.org/8439020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@108523 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser')
-rw-r--r--chrome/browser/chromeos/mobile_config.cc18
1 files changed, 9 insertions, 9 deletions
diff --git a/chrome/browser/chromeos/mobile_config.cc b/chrome/browser/chromeos/mobile_config.cc
index b58ff1b..852696a 100644
--- a/chrome/browser/chromeos/mobile_config.cc
+++ b/chrome/browser/chromeos/mobile_config.cc
@@ -6,6 +6,7 @@
#include <algorithm>
+#include "base/bind.h"
#include "base/file_path.h"
#include "base/file_util.h"
#include "base/json/json_reader.h"
@@ -286,10 +287,10 @@ MobileConfig::~MobileConfig() {
void MobileConfig::LoadConfig() {
BrowserThread::PostTask(BrowserThread::FILE, FROM_HERE,
- NewRunnableMethod(this,
- &MobileConfig::ReadConfigInBackground,
- FilePath(kGlobalCarrierConfigPath),
- FilePath(kLocalCarrierConfigPath)));
+ base::Bind(&MobileConfig::ReadConfigInBackground,
+ base::Unretained(this), // this class is a singleton.
+ FilePath(kGlobalCarrierConfigPath),
+ FilePath(kLocalCarrierConfigPath)));
}
void MobileConfig::ProcessConfig(const std::string& global_config,
@@ -332,11 +333,10 @@ void MobileConfig::ReadConfigInBackground(const FilePath& global_config_file,
<< local_config_file.value();
}
BrowserThread::PostTask(BrowserThread::UI, FROM_HERE,
- NewRunnableMethod(
- this,
- &MobileConfig::ProcessConfig,
- global_config,
- local_config));
+ base::Bind(&MobileConfig::ProcessConfig,
+ base::Unretained(this), // singleton.
+ global_config,
+ local_config));
}
} // namespace chromeos