Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Delta Between Two Patch Sets: mobile/android/base/GeckoProfile.java

Issue 5928376401395712: Disable the start pane (Closed)
Left Patch Set: Actually hide the start pane Created March 1, 2015, 11:57 a.m.
Right Patch Set: Make the change in GeckoProfile.java rather than BrowserApp.java Created March 2, 2015, 10:01 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Right: Side by side diff | Download
« no previous file with change/comment | « no previous file | no next file » | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(no file at all)
1 /* -*- Mode: Java; c-basic-offset: 4; tab-width: 20; indent-tabs-mode: nil; -*- 1 /* -*- Mode: Java; c-basic-offset: 4; tab-width: 20; indent-tabs-mode: nil; -*-
2 * This Source Code Form is subject to the terms of the Mozilla Public 2 * This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this 3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 5
6 package org.mozilla.gecko; 6 package org.mozilla.gecko;
7 7
8 import java.io.File; 8 import java.io.File;
9 import java.io.FileOutputStream; 9 import java.io.FileOutputStream;
10 import java.io.FileReader; 10 import java.io.FileReader;
(...skipping 639 matching lines...) Expand 10 before | Expand all | Expand 10 after
650 try { 650 try {
651 writer.append("{\"created\": " + System.currentTimeMillis() + "} \n"); 651 writer.append("{\"created\": " + System.currentTimeMillis() + "} \n");
652 } finally { 652 } finally {
653 writer.close(); 653 writer.close();
654 } 654 }
655 } catch (Exception e) { 655 } catch (Exception e) {
656 // Best-effort. 656 // Best-effort.
657 Log.w(LOGTAG, "Couldn't write times.json.", e); 657 Log.w(LOGTAG, "Couldn't write times.json.", e);
658 } 658 }
659 659
660 // Initialize pref flag for displaying the start pane for a new non-weba pp profile. 660 // PREF_STARTPANE_ENABLED was set to true for non-webapp profiles here.
661 if (!mIsWebAppProfile) { 661 // In Adblock Browser however, we never want to see the start pane.
662 final SharedPreferences prefs = GeckoSharedPrefs.forProfile(mApplica tionContext);
663 prefs.edit().putBoolean(BrowserApp.PREF_STARTPANE_ENABLED, true).app ly();
664 }
665 662
666 return profileDir; 663 return profileDir;
667 } 664 }
668 665
669 /** 666 /**
670 * This method is called once, immediately before creation of the profile 667 * This method is called once, immediately before creation of the profile
671 * directory completes. 668 * directory completes.
672 * 669 *
673 * It queues up work to be done in the background to prepare the profile, 670 * It queues up work to be done in the background to prepare the profile,
674 * such as adding default bookmarks. 671 * such as adding default bookmarks.
(...skipping 18 matching lines...) Expand all
693 // indices of the distribution and default bookmarks are 690 // indices of the distribution and default bookmarks are
694 // contiguous. Because there are always at least as many 691 // contiguous. Because there are always at least as many
695 // bookmarks as there are favicons, we can also guarantee that 692 // bookmarks as there are favicons, we can also guarantee that
696 // the favicon IDs won't overlap. 693 // the favicon IDs won't overlap.
697 final int offset = BrowserDB.addDistributionBookmarks(cr, distri bution, 0); 694 final int offset = BrowserDB.addDistributionBookmarks(cr, distri bution, 0);
698 BrowserDB.addDefaultBookmarks(context, cr, offset); 695 BrowserDB.addDefaultBookmarks(context, cr, offset);
699 } 696 }
700 }); 697 });
701 } 698 }
702 } 699 }
LEFTRIGHT
« no previous file | no next file » | Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Toggle Comments ('s')

Powered by Google App Engine
This is Rietveld