Bug 1262273 - Keep more GeckoProfile methods from getting Proguarded out. r=mcomella
authorNick Alexander <nalexander@mozilla.com>
Wed, 06 Apr 2016 09:53:14 -0700
changeset 292124 f60c206eb2841ef605421eb08b9380e940460972
parent 292123 28c2a5b261c112c4c08f3e3ce53d8facbe51a44a
child 292125 165addeb1e58bf6791cc60c4c28f71a1558059a4
push id74762
push usercbook@mozilla.com
push dateThu, 07 Apr 2016 09:56:20 +0000
treeherdermozilla-inbound@772253c53374 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmcomella
bugs1262273
milestone48.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1262273 - Keep more GeckoProfile methods from getting Proguarded out. r=mcomella These are mostly used in TestGeckoProfile. MozReview-Commit-ID: DRNhswTQmOg
mobile/android/base/java/org/mozilla/gecko/GeckoProfile.java
--- a/mobile/android/base/java/org/mozilla/gecko/GeckoProfile.java
+++ b/mobile/android/base/java/org/mozilla/gecko/GeckoProfile.java
@@ -531,36 +531,39 @@ public final class GeckoProfile {
         } catch(IOException ex) {
             Log.e(LOGTAG, "Error unlocking profile", ex);
         }
 
         mLocked = LockState.LOCKED;
         return false;
     }
 
+    @RobocopTarget
     public boolean inGuestMode() {
         return mInGuestMode;
     }
 
     private void setDir(File dir) {
         if (dir != null && dir.exists() && dir.isDirectory()) {
             synchronized (this) {
                 mProfileDir = dir;
             }
         }
     }
 
+    @RobocopTarget
     public String getName() {
         return mName;
     }
 
     public boolean isCustomProfile() {
         return CUSTOM_PROFILE.equals(mName);
     }
 
+    @RobocopTarget
     public synchronized File getDir() {
         forceCreate();
         return mProfileDir;
     }
 
     public synchronized GeckoProfile forceCreate() {
         if (mProfileDir != null) {
             return this;