win: Fix building, close #2018

This commit is contained in:
Cheng Zhao 2015-06-23 10:18:43 +08:00
parent 19963bfcd1
commit 1ce86b6dfc
5 changed files with 6 additions and 8 deletions

View file

@ -343,7 +343,7 @@ mate::ObjectTemplateBuilder Cookies::GetObjectTemplateBuilder(
mate::Handle<Cookies> Cookies::Create(
v8::Isolate* isolate,
content::BrowserContext* browser_context) {
return CreateHandle(isolate, new Cookies(browser_context));
return mate::CreateHandle(isolate, new Cookies(browser_context));
}
} // namespace api

View file

@ -354,7 +354,7 @@ void Protocol::EmitEventInUI(const std::string& event,
// static
mate::Handle<Protocol> Protocol::Create(
v8::Isolate* isolate, AtomBrowserContext* browser_context) {
return CreateHandle(isolate, new Protocol(browser_context));
return mate::CreateHandle(isolate, new Protocol(browser_context));
}
} // namespace api

View file

@ -41,7 +41,7 @@ mate::ObjectTemplateBuilder Session::GetObjectTemplateBuilder(
mate::Handle<Session> Session::Create(
v8::Isolate* isolate,
content::BrowserContext* browser_context) {
return CreateHandle(isolate, new Session(browser_context));
return mate::CreateHandle(isolate, new Session(browser_context));
}
} // namespace api