Adapt to changes of Chrome 51 API changes
This commit is contained in:
parent
e7be3d0ef9
commit
851ef398fb
39 changed files with 157 additions and 196 deletions
|
@ -14,8 +14,8 @@ namespace brightray {
|
|||
|
||||
namespace {
|
||||
|
||||
scoped_ptr<base::DictionaryValue> GetConstants() {
|
||||
scoped_ptr<base::DictionaryValue> constants = net::GetNetConstants();
|
||||
std::unique_ptr<base::DictionaryValue> GetConstants() {
|
||||
std::unique_ptr<base::DictionaryValue> constants = net::GetNetConstants();
|
||||
|
||||
// Adding client information to constants dictionary.
|
||||
base::DictionaryValue* client_info = new base::DictionaryValue();
|
||||
|
@ -53,7 +53,7 @@ void NetLog::StartLogging(net::URLRequestContext* url_request_context) {
|
|||
return;
|
||||
}
|
||||
|
||||
scoped_ptr<base::Value> constants(GetConstants());
|
||||
std::unique_ptr<base::Value> constants(GetConstants());
|
||||
write_to_file_observer_.StartObserving(this,
|
||||
std::move(log_file_),
|
||||
constants.get(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue