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

Issue 1692243003: Move RTCFileLogger to webrtc/base/objc. (Closed)

Created:
4 years, 10 months ago by hjon_webrtc
Modified:
4 years, 9 months ago
Reviewers:
jiayl2, tkchin_webrtc
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Move RTCFileLogger to webrtc/base/objc. BUG= R=jiayl@webrtc.org, tkchin@webrtc.org Committed: https://crrev.com/6140fcc11cb0c6fccf5dcdd3a499409d8f638c1d Patch from Jon Hjelle <hjon@andyet.net>;. Cr-Commit-Position: refs/heads/master@{#11754}

Patch Set 1 #

Patch Set 2 : Add symlinks #

Patch Set 3 : Re-upload of add symlinks #

Patch Set 4 : Upload again #

Patch Set 5 : Remove symlinks #

Total comments: 2

Patch Set 6 : Fix inadvertent removal #

Patch Set 7 : Update app_signaling dependencies #

Patch Set 8 : Fix path #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -244 lines) Patch
M talk/app/webrtc/legacy_objc_api.gyp View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
D talk/app/webrtc/objc/RTCFileLogger.mm View 1 1 chunk +0 lines, -192 lines 0 comments Download
M webrtc/base/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M webrtc/base/base.gyp View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
A + webrtc/base/objc/RTCFileLogger.h View 1 2 3 4 5 1 chunk +6 lines, -28 lines 0 comments Download
A + webrtc/base/objc/RTCFileLogger.mm View 1 2 3 4 5 1 chunk +6 lines, -23 lines 0 comments Download
M webrtc/webrtc_examples.gyp View 1 2 3 4 5 6 7 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 31 (8 generated)
hjon_webrtc
This was at https://codereview.webrtc.org/1558453002/, but moved under this account for simplicity. Only change from previous ...
4 years, 10 months ago (2016-02-13 00:13:25 UTC) #2
tkchin_webrtc
On 2016/02/13 00:13:25, hjon_webrtc wrote: > This was at https://codereview.webrtc.org/1558453002/, but moved under this > ...
4 years, 10 months ago (2016-02-16 19:13:56 UTC) #3
tkchin_webrtc
On 2016/02/16 19:13:56, tkchin_webrtc wrote: > On 2016/02/13 00:13:25, hjon_webrtc wrote: > > This was ...
4 years, 10 months ago (2016-02-16 19:15:42 UTC) #4
hjon_webrtc
Added symlinks. I think the upload worked correctly, though I had some errors the first ...
4 years, 10 months ago (2016-02-18 17:40:46 UTC) #5
tkchin_webrtc
On 2016/02/18 17:40:46, hjon_webrtc wrote: > Added symlinks. I think the upload worked correctly, though ...
4 years, 10 months ago (2016-02-19 23:27:14 UTC) #6
hjon_webrtc
I think the upload worked correctly this time.
4 years, 10 months ago (2016-02-19 23:35:21 UTC) #7
tkchin_webrtc
On 2016/02/19 23:35:21, hjon_webrtc wrote: > I think the upload worked correctly this time. I ...
4 years, 10 months ago (2016-02-19 23:55:23 UTC) #8
hjon_webrtc
4 years, 10 months ago (2016-02-22 21:02:41 UTC) #10
tkchin_webrtc
lgtm % nit https://codereview.webrtc.org/1692243003/diff/100001/webrtc/base/objc/RTCFileLogger.mm File webrtc/base/objc/RTCFileLogger.mm (left): https://codereview.webrtc.org/1692243003/diff/100001/webrtc/base/objc/RTCFileLogger.mm#oldcode49 webrtc/base/objc/RTCFileLogger.mm:49: @synthesize shouldDisableBuffering = _shouldDisableBuffering; add these ...
4 years, 10 months ago (2016-02-23 00:13:40 UTC) #11
hjon_webrtc
@tkchin You mentioned we'll need to get rtc_api_objc compiling for iOS and Mac first. Is ...
4 years, 10 months ago (2016-02-23 16:38:37 UTC) #12
tkchin_webrtc
On 2016/02/23 16:38:37, hjon_webrtc wrote: > @tkchin You mentioned we'll need to get rtc_api_objc compiling ...
4 years, 10 months ago (2016-02-23 17:28:45 UTC) #14
tkchin_webrtc
On 2016/02/23 17:28:45, tkchin_webrtc wrote: > On 2016/02/23 16:38:37, hjon_webrtc wrote: > > @tkchin You ...
4 years, 10 months ago (2016-02-23 17:28:58 UTC) #15
hjon_webrtc
@tkchin: ptal Also, I got this warning when doing git cl upload: Depending on rtc_base ...
4 years, 10 months ago (2016-02-24 23:14:46 UTC) #16
tkchin_webrtc
lgtm Ignore the webrtc_examples.gyp warning for now - working on fixing that. Meanwhile just commit ...
4 years, 10 months ago (2016-02-24 23:34:10 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1692243003/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1692243003/180001
4 years, 10 months ago (2016-02-24 23:44:12 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: presubmit on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/presubmit/builds/3664)
4 years, 10 months ago (2016-02-24 23:53:47 UTC) #21
hjon_webrtc
@jiayl Could you also take a look?
4 years, 10 months ago (2016-02-24 23:59:05 UTC) #23
jiayl2
lgtm
4 years, 10 months ago (2016-02-25 00:08:15 UTC) #24
tkchin_webrtc
Committed patchset #8 (id:180001) manually as 6140fcc11cb0c6fccf5dcdd3a499409d8f638c1d.
4 years, 10 months ago (2016-02-25 00:33:28 UTC) #26
commit-bot: I haz the power
Patchset 8 (id:??) landed as https://crrev.com/6140fcc11cb0c6fccf5dcdd3a499409d8f638c1d Cr-Commit-Position: refs/heads/master@{#11754}
4 years, 10 months ago (2016-02-25 00:33:31 UTC) #28
nicholss
I am running into build issues which might be related to this change: [28/943] OBJCXX ...
4 years, 9 months ago (2016-03-01 17:56:26 UTC) #29
nicholss
On 2016/03/01 17:56:26, nicholss wrote: > I am running into build issues which might be ...
4 years, 9 months ago (2016-03-01 18:01:26 UTC) #30
nicholss
4 years, 9 months ago (2016-03-01 18:06:39 UTC) #31
Message was sent while issue was closed.
On 2016/03/01 18:01:26, nicholss wrote:
> On 2016/03/01 17:56:26, nicholss wrote:
> > I am running into build issues which might be related to this change:
> > 
> > [28/943] OBJCXX
obj/third_party/webrtc/base/objc/rtc_base_objc.RTCFileLogger.o
> > FAILED: ../../third_party/llvm-build/Release+Asserts/bin/clang++ -MMD -MF
> > obj/third_party/webrtc/base/objc/rtc_base_objc.RTCFileLogger.o.d
> > -DV8_DEPRECATION_WARNINGS -DCLD_VERSION=2 -DDISABLE_NACL -DCHROMIUM_BUILD
> > -DCR_CLANG_REVISION=261368-1 -DUSE_LIBJPEG_TURBO=1 -DENABLE_WEBRTC=1
> > -DFIELDTRIAL_TESTING_ENABLED -DDISABLE_FTP_SUPPORT=1
> > -DV8_USE_EXTERNAL_STARTUP_DATA -DWEBRTC_RESTRICT_LOGGING
-DEXPAT_RELATIVE_PATH
> > -DWEBRTC_CHROMIUM_BUILD -DLOGGING_INSIDE_WEBRTC -DWEBRTC_POSIX -DWEBRTC_MAC
> > -DWEBRTC_IOS -DFEATURE_ENABLE_SSL -DSSL_USE_OPENSSL -DHAVE_OPENSSL_SSL_H
> > -DNO_MAIN_THREAD_WRAPPING -DUSE_LIBPCI=1 -D__STDC_CONSTANT_MACROS
> > -D__STDC_FORMAT_MACROS -DDYNAMIC_ANNOTATIONS_ENABLED=1
> > -DWTF_USE_DYNAMIC_ANNOTATIONS=1 -D_DEBUG -Igen -I../..
> > -I../../third_party/webrtc_overrides -I../../third_party -isysroot
> >
>
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk
> > -O0 -gdwarf-2 -Werror -mios-simulator-version-min=7.0 -arch x86_64 -Wall
> -Wextra
> > -Wno-unused-parameter -Wno-missing-field-initializers
> > -Wno-selector-type-mismatch -Wheader-hygiene -Wno-char-subscripts
> > -Wno-unneeded-internal-declaration -Wno-covered-switch-default
> > -Wstring-conversion -Wno-c++11-narrowing -Wno-deprecated-register
> > -Wno-inconsistent-missing-override -Wno-shift-negative-value -std=c++11
> > -stdlib=libc++ -fno-rtti -fno-exceptions -fvisibility-inlines-hidden
> > -fno-threadsafe-statics -Xclang -load -Xclang
> >
>
/Users/nicholss/chromoting/crd-base/src/third_party/llvm-build/Release+Asserts/lib/libFindBadConstructs.dylib
> > -Xclang -add-plugin -Xclang find-bad-constructs -Xclang
> > -plugin-arg-find-bad-constructs -Xclang check-templates -Xclang
> > -plugin-arg-find-bad-constructs -Xclang follow-macro-expansion
> > -fcolor-diagnostics -fstack-protector-all -fobjc-arc
> > -Wobjc-missing-property-synthesis -fobjc-call-cxx-cdtors -include
> > obj/third_party/webrtc/build/rtc_base_objc.WebRTC-Prefix.pch-mm -c
> > ../../third_party/webrtc/base/objc/RTCFileLogger.mm -o
> > obj/third_party/webrtc/base/objc/rtc_base_objc.RTCFileLogger.o
> > In file included from
../../third_party/webrtc/base/objc/RTCFileLogger.mm:16:
> > ../../third_party/webrtc/base/logsinks.h:25:36: error: expected class name
> > class FileRotatingLogSink : public LogSink {
> >                                    ^
> > ../../third_party/webrtc/base/logsinks.h:33:26: error: only virtual member
> > functions can be marked 'override'
> >   ~FileRotatingLogSink() override;
> >                          ^~~~~~~~
> > ../../third_party/webrtc/base/logsinks.h:37:49: error: only virtual member
> > functions can be marked 'override'
> >   void OnLogMessage(const std::string& message) override;
> >                                                 ^~~~~~~~
> > ../../third_party/webrtc/base/logsinks.h:60:37: error: only virtual member
> > functions can be marked 'override'
> >   ~CallSessionFileRotatingLogSink() override;
> >                                     ^~~~~~~~
> > ../../third_party/webrtc/base/objc/RTCFileLogger.mm:111:20: error: no member
> > named 'LogThreads' in 'rtc::LogMessage'
> >   rtc::LogMessage::LogThreads(true);
> >   ~~~~~~~~~~~~~~~~~^
> > ../../third_party/webrtc/base/objc/RTCFileLogger.mm:112:20: error: no member
> > named 'LogTimestamps' in 'rtc::LogMessage'
> >   rtc::LogMessage::LogTimestamps(true);
> >   ~~~~~~~~~~~~~~~~~^
> > ../../third_party/webrtc/base/objc/RTCFileLogger.mm:113:20: error: no member
> > named 'AddLogToStream' in 'rtc::LogMessage'
> >   rtc::LogMessage::AddLogToStream(_logSink.get(), [self rtcSeverity]);
> >   ~~~~~~~~~~~~~~~~~^
> > ../../third_party/webrtc/base/objc/RTCFileLogger.mm:122:20: error: no member
> > named 'RemoveLogToStream' in 'rtc::LogMessage'
> >   rtc::LogMessage::RemoveLogToStream(_logSink.get());
> >   ~~~~~~~~~~~~~~~~~^
> > In file included from
../../third_party/webrtc/base/objc/RTCFileLogger.mm:14:
> > In file included from ../../third_party/webrtc/base/filerotatingstream.h:18:
> > In file included from ../../third_party/webrtc/base/stream.h:20:
> > In file included from ../../third_party/webrtc/base/messagehandler.h:17:
> > ../../third_party/webrtc/base/scoped_ptr.h:126:5: error: delete called on
> > non-final 'rtc::FileRotatingLogSink' that has virtual functions but
> non-virtual
> > destructor [-Werror,-Wdelete-non-virtual-dtor]
> >     delete ptr;
> >     ^
> > ../../third_party/webrtc/base/scoped_ptr.h:239:7: note: in instantiation of
> > member function 'rtc::DefaultDeleter<rtc::FileRotatingLogSink>::operator()'
> > requested here
> >       static_cast<D&>(data_)(old);
> >       ^
> > ../../third_party/webrtc/base/scoped_ptr.h:386:49: note: in instantiation of
> > member function 'rtc::internal::scoped_ptr_impl<rtc::FileRotatingLogSink,
> > rtc::DefaultDeleter<rtc::FileRotatingLogSink> >::reset' requested here
> >   void reset(element_type* p = nullptr) { impl_.reset(p); }
> >                                                 ^
> > ../../third_party/webrtc/base/objc/RTCFileLogger.mm:90:16: note: in
> > instantiation of member function 'rtc::scoped_ptr<rtc::FileRotatingLogSink,
> > rtc::DefaultDeleter<rtc::FileRotatingLogSink> >::reset' requested here
> >       _logSink.reset(
> >                ^
> > 9 errors generated.
> > 
> > 
> > 
> > Note: I am getting this breakage in chromium for iOS. This is a regression,
I
> > had no issues working last week.
> 
> If I remove RTCFileLogger.h and RTCFileLogger.mm from my build I am back to
> working. The above errors are mostly related to RTCFileLogger.h not being able
> to find logging.h, so LogSink is not defined.

I have filed a bug: https://bugs.chromium.org/p/webrtc/issues/detail?id=5611

Powered by Google App Engine
This is Rietveld 408576698