Update to API changes of Chrome 51
This commit is contained in:
parent
05c2999651
commit
7ba391da7c
87 changed files with 225 additions and 231 deletions
|
@ -22,7 +22,7 @@ class Archive : public mate::Wrappable<Archive> {
|
|||
public:
|
||||
static v8::Local<v8::Value> Create(v8::Isolate* isolate,
|
||||
const base::FilePath& path) {
|
||||
scoped_ptr<asar::Archive> archive(new asar::Archive(path));
|
||||
std::unique_ptr<asar::Archive> archive(new asar::Archive(path));
|
||||
if (!archive->Init())
|
||||
return v8::False(isolate);
|
||||
return (new Archive(isolate, std::move(archive)))->GetWrapper();
|
||||
|
@ -42,7 +42,7 @@ class Archive : public mate::Wrappable<Archive> {
|
|||
}
|
||||
|
||||
protected:
|
||||
Archive(v8::Isolate* isolate, scoped_ptr<asar::Archive> archive)
|
||||
Archive(v8::Isolate* isolate, std::unique_ptr<asar::Archive> archive)
|
||||
: archive_(std::move(archive)) {
|
||||
Init(isolate);
|
||||
}
|
||||
|
@ -120,7 +120,7 @@ class Archive : public mate::Wrappable<Archive> {
|
|||
}
|
||||
|
||||
private:
|
||||
scoped_ptr<asar::Archive> archive_;
|
||||
std::unique_ptr<asar::Archive> archive_;
|
||||
|
||||
DISALLOW_COPY_AND_ASSIGN(Archive);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue