Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(68)

Side by Side Diff: Source/modules/filesystem/EntrySync.cpp

Issue 386613002: FYI: Compile fixes when always using a local for method return value Base URL: https://chromium.googlesource.com/chromium/blink.git@idl-nullable-method-return-type
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 return helper->getResult(exceptionState); 71 return helper->getResult(exceptionState);
72 } 72 }
73 73
74 void EntrySync::remove(ExceptionState& exceptionState) const 74 void EntrySync::remove(ExceptionState& exceptionState) const
75 { 75 {
76 RefPtr<VoidSyncCallbackHelper> helper = VoidSyncCallbackHelper::create(); 76 RefPtr<VoidSyncCallbackHelper> helper = VoidSyncCallbackHelper::create();
77 m_fileSystem->remove(this, helper->successCallback(), helper->errorCallback( ), DOMFileSystemBase::Synchronous); 77 m_fileSystem->remove(this, helper->successCallback(), helper->errorCallback( ), DOMFileSystemBase::Synchronous);
78 helper->getResult(exceptionState); 78 helper->getResult(exceptionState);
79 } 79 }
80 80
81 EntrySync* EntrySync::getParent() const 81 DirectoryEntrySync* EntrySync::getParent() const
82 { 82 {
83 // Sync verion of getParent doesn't throw exceptions. 83 // Sync verion of getParent doesn't throw exceptions.
84 String parentPath = DOMFilePath::getDirectory(fullPath()); 84 String parentPath = DOMFilePath::getDirectory(fullPath());
85 return DirectoryEntrySync::create(m_fileSystem, parentPath); 85 return DirectoryEntrySync::create(m_fileSystem, parentPath);
86 } 86 }
87 87
88 EntrySync::EntrySync(DOMFileSystemBase* fileSystem, const String& fullPath) 88 EntrySync::EntrySync(DOMFileSystemBase* fileSystem, const String& fullPath)
89 : EntryBase(fileSystem, fullPath) 89 : EntryBase(fileSystem, fullPath)
90 { 90 {
91 ScriptWrappable::init(this); 91 ScriptWrappable::init(this);
92 } 92 }
93 93
94 void EntrySync::trace(Visitor* visitor) 94 void EntrySync::trace(Visitor* visitor)
95 { 95 {
96 EntryBase::trace(visitor); 96 EntryBase::trace(visitor);
97 } 97 }
98 98
99 } 99 }
OLDNEW
« Source/bindings/tests/results/V8TestObject.cpp ('K') | « Source/modules/filesystem/EntrySync.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698