Bug 1218315 - Replace NS_LITERAL_STRING(...).get() with MOZ_UTF16(...) on browser. r=nfroyd
authorMakoto Kato <m_kato@ga2.so-net.ne.jp>
Wed, 28 Oct 2015 14:30:35 +0900
changeset 305128 18e8b44eb5651cf3ffa7693cf3129a4af56266e6
parent 305127 5caf6fd04aedaf6938c66d4e8bbe9c88b6b06486
child 305129 35d613de217d021cab90adc0cac6d45aa2d9256d
push id1001
push userraliiev@mozilla.com
push dateMon, 18 Jan 2016 19:06:03 +0000
treeherdermozilla-release@8b89261f3ac4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersnfroyd
bugs1218315
milestone44.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1218315 - Replace NS_LITERAL_STRING(...).get() with MOZ_UTF16(...) on browser. r=nfroyd
browser/components/migration/nsEdgeReadingListExtractor.cpp
--- a/browser/components/migration/nsEdgeReadingListExtractor.cpp
+++ b/browser/components/migration/nsEdgeReadingListExtractor.cpp
@@ -96,26 +96,26 @@ nsEdgeReadingListExtractor::Extract(cons
   NS_HANDLE_JET_ERROR(err)
   tableOpened = true;
   err = JetGetColumnInfo(sesid, dbid, "ReadingList", "URL", &urlColumnInfo,
                          sizeof(urlColumnInfo), JET_ColInfo);
   NS_HANDLE_JET_ERROR(err)
   if (urlColumnInfo.cbMax > MAX_URL_LENGTH) {
     nsCOMPtr<nsIConsoleService> consoleService = do_GetService(NS_CONSOLESERVICE_CONTRACTID);
     if (consoleService) {
-      consoleService->LogStringMessage(NS_LITERAL_STRING("Edge migration: URL column size increased").get());
+      consoleService->LogStringMessage(MOZ_UTF16("Edge migration: URL column size increased"));
     }
   }
   err = JetGetColumnInfo(sesid, dbid, "ReadingList", "Title", &titleColumnInfo,
                          sizeof(titleColumnInfo), JET_ColInfo);
   NS_HANDLE_JET_ERROR(err)
   if (titleColumnInfo.cbMax > MAX_TITLE_LENGTH) {
     nsCOMPtr<nsIConsoleService> consoleService = do_GetService(NS_CONSOLESERVICE_CONTRACTID);
     if (consoleService) {
-      consoleService->LogStringMessage(NS_LITERAL_STRING("Edge migration: Title column size increased").get());
+      consoleService->LogStringMessage(MOZ_UTF16("Edge migration: Title column size increased"));
     }
   }
   err = JetGetColumnInfo(sesid, dbid, "ReadingList", "AddedDate", &addedDateColumnInfo,
                          sizeof(addedDateColumnInfo), JET_ColInfo);
   NS_HANDLE_JET_ERROR(err)
 
   // verify the column types are what we expect:
   if (urlColumnInfo.coltyp != JET_coltypLongText ||