OSDN Git Service

Merge "fix the permission check crash in statsd."
authorTreeHugger Robot <treehugger-gerrit@google.com>
Fri, 17 Nov 2017 20:14:01 +0000 (20:14 +0000)
committerAndroid (Google) Code Review <android-gerrit@google.com>
Fri, 17 Nov 2017 20:14:01 +0000 (20:14 +0000)
1  2 
cmds/statsd/src/StatsService.cpp
cmds/statsd/src/config/ConfigManager.cpp

Simple merge
@@@ -42,10 -35,11 +42,10 @@@ ConfigManager::~ConfigManager() 
  }
  
  void ConfigManager::Startup() {
 -    // TODO: Implement me -- read from storage and call onto all of the listeners.
 -    // Instead, we'll just make a fake one.
 +    readConfigFromDisk();
  
      // this should be called from StatsService when it receives a statsd_config
-     UpdateConfig(ConfigKey(0, "fake"), build_fake_config());
+     UpdateConfig(ConfigKey(1000, "fake"), build_fake_config());
  }
  
  void ConfigManager::AddListener(const sp<ConfigListener>& listener) {