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

Unified Diff: editor/tools/plugins/com.google.dart.tools.update.core/src/com/google/dart/tools/update/core/internal/UpdateUtils.java

Issue 10660016: Update manager fixes to handle update check failures. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: editor/tools/plugins/com.google.dart.tools.update.core/src/com/google/dart/tools/update/core/internal/UpdateUtils.java
===================================================================
--- editor/tools/plugins/com.google.dart.tools.update.core/src/com/google/dart/tools/update/core/internal/UpdateUtils.java (revision 9083)
+++ editor/tools/plugins/com.google.dart.tools.update.core/src/com/google/dart/tools/update/core/internal/UpdateUtils.java (working copy)
@@ -16,10 +16,8 @@
import com.google.dart.tools.update.core.Revision;
import com.google.dart.tools.update.core.UpdateCore;
-import org.eclipse.core.runtime.FileLocator;
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.Path;
import org.eclipse.jface.util.Util;
import org.eclipse.swt.internal.Library;
@@ -253,17 +251,6 @@
*/
public static File getUpdateInstallDir() {
- try {
- URL url = FileLocator.find(UpdateCore.getInstance().getBundle(), Path.EMPTY, null);
- if (url != null) {
- File bundle = new File(FileLocator.resolve(url).toURI());
- //dart/plugins/XXXX.jar
- return bundle.getParentFile().getParentFile();
- }
- } catch (Exception e) {
- return null;
- }
-
if (UpdateCore.DEBUGGING_IN_RUNTIME_WS) {
//TODO (pquitslund): for local testing
return new File(getUpdateTempDir().getParentFile(), "install");

Powered by Google App Engine
This is Rietveld 408576698