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

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/BookmarksBridge.java

Issue 440183002: [Android] Make getAllBookmarkIDsOrderedByCreationDate() descending order (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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 unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/android/bookmarks/bookmarks_bridge.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package org.chromium.chrome.browser; 5 package org.chromium.chrome.browser;
6 6
7 import android.text.TextUtils; 7 import android.text.TextUtils;
8 import android.util.Log; 8 import android.util.Log;
9 9
10 import org.chromium.base.CalledByNative; 10 import org.chromium.base.CalledByNative;
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 nativeGetChildIDs(mNativeBookmarksBridge, 201 nativeGetChildIDs(mNativeBookmarksBridge,
202 id.mId, 202 id.mId,
203 id.mType, 203 id.mType,
204 getFolders, 204 getFolders,
205 getBookmarks, 205 getBookmarks,
206 result); 206 result);
207 return result; 207 return result;
208 } 208 }
209 209
210 /** 210 /**
211 * @return All bookmark IDs ordered by creation date. 211 * @return All bookmark IDs ordered by descending creation date.
212 */ 212 */
213 public List<BookmarkId> getAllBookmarkIDsOrderedByCreationDate() { 213 public List<BookmarkId> getAllBookmarkIDsOrderedByCreationDate() {
214 assert mIsNativeBookmarkModelLoaded; 214 assert mIsNativeBookmarkModelLoaded;
215 List<BookmarkId> result = new ArrayList<BookmarkId>(); 215 List<BookmarkId> result = new ArrayList<BookmarkId>();
216 nativeGetAllBookmarkIDsOrderedByCreationDate(mNativeBookmarksBridge, res ult); 216 nativeGetAllBookmarkIDsOrderedByCreationDate(mNativeBookmarksBridge, res ult);
217 return result; 217 return result;
218 } 218 }
219 219
220 /** 220 /**
221 * Set title of the given bookmark. 221 * Set title of the given bookmark.
(...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after
633 case GET_CURRENT_FOLDER_HIERARCHY: 633 case GET_CURRENT_FOLDER_HIERARCHY:
634 mHandler.getCurrentFolderHierarchy(mFolderId, mCallback); 634 mHandler.getCurrentFolderHierarchy(mFolderId, mCallback);
635 break; 635 break;
636 default: 636 default:
637 assert false; 637 assert false;
638 break; 638 break;
639 } 639 }
640 } 640 }
641 } 641 }
642 } 642 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/android/bookmarks/bookmarks_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698