summaryrefslogtreecommitdiffstats
path: root/chrome/browser
diff options
context:
space:
mode:
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