summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShawn O. Pearce <sop@google.com>2009-05-18 09:48:51 -0700
committerShawn O. Pearce <sop@google.com>2009-05-18 10:16:59 -0700
commit6052869baf16f82b26f70bac826e823136dca30a (patch)
tree21dfbcf9a0513efa10b4b3f31cf5109bd1472fd3
parentfb6310e5d1d899b4458f5db928fa4f9f400b1773 (diff)
Minor cleanup to Gerrit module bootstrap code path
Signed-off-by: Shawn O. Pearce <sop@google.com>
-rw-r--r--src/main/java/com/google/gerrit/client/Gerrit.java17
1 files changed, 7 insertions, 10 deletions
diff --git a/src/main/java/com/google/gerrit/client/Gerrit.java b/src/main/java/com/google/gerrit/client/Gerrit.java
index 3ae578a285..544e95817f 100644
--- a/src/main/java/com/google/gerrit/client/Gerrit.java
+++ b/src/main/java/com/google/gerrit/client/Gerrit.java
@@ -291,26 +291,23 @@ public class Gerrit implements EntryPoint {
} else {
Cookies.removeCookie(ACCOUNT_COOKIE);
}
- refreshMenuBar();
- showInitialScreen();
+ onModuleLoad3();
}
public void onFailure(final Throwable caught) {
- if (!GWT.isScript() && !GerritCallback.isNotSignedIn(caught)) {
- GWT.log("Unexpected failure from validating account", caught);
- }
+ GWT.log("Unexpected failure from validating account", caught);
Cookies.removeCookie(ACCOUNT_COOKIE);
- refreshMenuBar();
- showInitialScreen();
+ onModuleLoad3();
}
});
} else {
- refreshMenuBar();
- showInitialScreen();
+ onModuleLoad3();
}
}
- private void showInitialScreen() {
+ private void onModuleLoad3() {
+ refreshMenuBar();
+
final RootPanel sg = RootPanel.get("gerrit_startinggerrit");
sg.getElement().getParentElement().removeChild(sg.getElement());
RootPanel.detachNow(sg);