Closed
Bug 1064834
Opened 11 years ago
Closed 11 years ago
move second screen modules to toolkit
Categories
(Toolkit :: General, defect)
Tracking
()
RESOLVED
FIXED
mozilla35
People
(Reporter: blassey, Assigned: blassey)
References
Details
Attachments
(1 file, 1 obsolete file)
|
3.33 KB,
patch
|
blassey
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Attachment #8486379 -
Flags: review?(mark.finkle)
Comment 1•11 years ago
|
||
Comment on attachment 8486379 [details] [diff] [review]
second_screen_modules.patch
>diff --git a/mobile/android/modules/SimpleServiceDiscovery.jsm b/toolkit/modules/secondscreen/SimpleServiceDiscovery.jsm
> // Define the "log" function as a binding of the Log.d function so it specifies
> // the "debug" priority and a log tag.
>-let log = Cu.import("resource://gre/modules/AndroidLog.jsm", {}).AndroidLog.d.bind(null, "SSDP");
>+let log = Cc["@mozilla.org/consoleservice;1"].getService(Ci.nsIConsoleService).logStringMessage
I wouldn't mind this becoming a #ifdef / #else / #endif so we keep our nicer Android logging. We do the same thing in some WebApps toolkit code too.
>+#ifdef ANDROID
> // We also query Java directly here for any devices that Android might support natively (i.e. Chromecast or Miracast)
> this.getAndroidDevices();
> },
>@@ -194,6 +197,7 @@ var SimpleServiceDiscovery = {
> this._addService(service);
> }
> });
>+#endif
> },
Would you mind treating these blocks separately? Yes, this compiles fine, but I'd like it to be a little cleaner and readable.
r+ with the nits fixed please.
If possible, I'd like to land this after bug 1020564 and bug 1058384 since those would be heavily bitrotted. Give me a few days to push on the reviews and see if I can't land all of these.
Attachment #8486379 -
Flags: review?(mark.finkle) → review+
| Assignee | ||
Comment 2•11 years ago
|
||
Updated patch with nits addressed
Assignee: nobody → blassey.bugs
Attachment #8486379 -
Attachment is obsolete: true
Attachment #8488706 -
Flags: review+
Comment 4•11 years ago
|
||
Flags: needinfo?(mark.finkle)
Comment 5•11 years ago
|
||
Try run looked fine:
https://tbpl.mozilla.org/?tree=Try&rev=463ed4d5d1ae
Comment 6•11 years ago
|
||
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla35
You need to log in
before you can comment on or make changes to this bug.
Description
•