Skip to content

Commit

Permalink
Equality is not defined for profiles. So we can only keep old or rese…
Browse files Browse the repository at this point in the history
…t. Let's reset.
  • Loading branch information
barancev committed Jan 7, 2017
1 parent b2ed531 commit 0238f2b
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
import static org.openqa.selenium.firefox.FirefoxDriver.BINARY;
import static org.openqa.selenium.firefox.FirefoxDriver.PROFILE;

import com.google.common.base.Preconditions;
import com.google.common.collect.ImmutableList;
import com.google.gson.JsonArray;
import com.google.gson.JsonElement;
Expand Down Expand Up @@ -139,9 +138,6 @@ public FirefoxOptions setProfile(FirefoxProfile profile) {

// Confusing API. Keeping package visible only
FirefoxOptions setProfileSafely(FirefoxProfile profile) {
Preconditions.checkState(
this.profile == null || this.profile.equals(profile),
"Profile passed to options is different from existing profile that has been set.");
if (profile == null) {
return this;
}
Expand Down

0 comments on commit 0238f2b

Please sign in to comment.