]> khamidou — GitHub mirrors - electron.git/commitdiff
Fix API changes on Linux
authorCheng Zhao <zcbenz@gmail.com>
Wed, 2 Sep 2015 09:30:07 +0000 (17:30 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Thu, 3 Sep 2015 08:50:23 +0000 (17:50 +0900)
atom/browser/ui/file_dialog_gtk.cc
atom/browser/ui/x/x_window_utils.cc

index 463ad987a8b09515e97372b8c22d799824389884..5885ffe3611cd285f7e5f7fba117da634d4b00da 100644 (file)
@@ -22,7 +22,7 @@ gboolean FileFilterCaseInsensitive(const GtkFileFilterInfo* file_info,
   // Makes .* file extension matches all file types.
   if (*file_extension == ".*")
     return true;
-  return EndsWith(file_info->filename, *file_extension, false);
+  return base::EndsWith(file_info->filename, *file_extension, false);
 }
 
 // Deletes |data| when gtk_file_filter_add_custom() is done with it.
index a15affb05f1bf3bdeed4b8359282a743dc6b58c7..e57122839cd81d4a88cad465acd929d9304cd282 100644 (file)
@@ -41,7 +41,7 @@ void SetWindowType(::Window xwindow, const std::string& type) {
   XDisplay* xdisplay = gfx::GetXDisplay();
   std::string type_prefix = "_NET_WM_WINDOW_TYPE_";
   ::Atom window_type = XInternAtom(
-      xdisplay, (type_prefix + StringToUpperASCII(type)).c_str(), False);
+      xdisplay, (type_prefix + base::StringToUpperASCII(type)).c_str(), False);
   XChangeProperty(xdisplay, xwindow,
                   XInternAtom(xdisplay, "_NET_WM_WINDOW_TYPE", False),
                   XA_ATOM,