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

Delta Between Two Patch Sets: mobile/android/thirdparty/org/adblockplus/browser/AddOnBridge.java

Issue 29322610: Issue 2720 - [Adblocking settings] Add the other filter lists category (Closed)
Left Patch Set: Created July 17, 2015, 6:47 p.m.
Right Patch Set: Last naming nit Created July 31, 2015, 9:36 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
LEFTRIGHT
1 /* 1 /*
2 * This file is part of Adblock Plus <https://adblockplus.org/>, 2 * This file is part of Adblock Plus <https://adblockplus.org/>,
3 * Copyright (C) 2006-2015 Eyeo GmbH 3 * Copyright (C) 2006-2015 Eyeo GmbH
4 * 4 *
5 * Adblock Plus is free software: you can redistribute it and/or modify 5 * Adblock Plus is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 3 as 6 * it under the terms of the GNU General Public License version 3 as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
8 * 8 *
9 * Adblock Plus is distributed in the hope that it will be useful, 9 * Adblock Plus is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 PRIVATE_HANDLER_THREAD.setDaemon(true); 54 PRIVATE_HANDLER_THREAD.setDaemon(true);
55 PRIVATE_HANDLER_THREAD.start(); 55 PRIVATE_HANDLER_THREAD.start();
56 PRIVATE_HANDLER = new Handler(PRIVATE_HANDLER_THREAD.getLooper()); 56 PRIVATE_HANDLER = new Handler(PRIVATE_HANDLER_THREAD.getLooper());
57 57
58 GLOBAL_HANDLER_THREAD = new HandlerThread("abp-global-handler"); 58 GLOBAL_HANDLER_THREAD = new HandlerThread("abp-global-handler");
59 GLOBAL_HANDLER_THREAD.setDaemon(true); 59 GLOBAL_HANDLER_THREAD.setDaemon(true);
60 GLOBAL_HANDLER_THREAD.start(); 60 GLOBAL_HANDLER_THREAD.start();
61 GLOBAL_HANDLER = new Handler(GLOBAL_HANDLER_THREAD.getLooper()); 61 GLOBAL_HANDLER = new Handler(GLOBAL_HANDLER_THREAD.getLooper());
62 } 62 }
63 63
64 public static void handlerPost(Runnable runnable) 64 public static void postToHandler(Runnable runnable)
65 { 65 {
66 GLOBAL_HANDLER.post(runnable); 66 GLOBAL_HANDLER.post(runnable);
67 } 67 }
68 68
69 public static void handlerPostDelayed(Runnable runnable, long delayMillis) 69 public static void postToHandlerDelayed(Runnable runnable, long delayMillis)
70 { 70 {
71 GLOBAL_HANDLER.postDelayed(runnable, delayMillis); 71 GLOBAL_HANDLER.postDelayed(runnable, delayMillis);
72 } 72 }
73 73
74 public static boolean getBooleanFromJsObject(final NativeJSObject obj, final S tring name, 74 public static boolean getBooleanFromJsObject(final NativeJSObject obj, final S tring name,
75 final boolean defaultValue) 75 final boolean defaultValue)
76 { 76 {
77 try 77 try
78 { 78 {
79 return obj.getBoolean(name); 79 return obj.getBoolean(name);
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
357 this.invokeSuccessCallback(jsObject); 357 this.invokeSuccessCallback(jsObject);
358 } 358 }
359 else 359 else
360 { 360 {
361 this.invokeFailureCallback(jsObject); 361 this.invokeFailureCallback(jsObject);
362 } 362 }
363 } 363 }
364 } 364 }
365 } 365 }
366 } 366 }
LEFTRIGHT

Powered by Google App Engine
This is Rietveld