]> khamidou — GitHub mirrors - electron.git/commitdiff
linux: Fix compilation error
authorCheng Zhao <zcbenz@gmail.com>
Sat, 14 Mar 2015 18:54:02 +0000 (18:54 +0000)
committerCheng Zhao <zcbenz@gmail.com>
Wed, 18 Mar 2015 01:57:48 +0000 (09:57 +0800)
atom/browser/atom_browser_main_parts.cc
chromium_src/chrome/renderer/printing/print_web_view_helper_linux.cc
chromium_src/chrome/renderer/printing/print_web_view_helper_pdf_win.cc
vendor/brightray
vendor/native_mate

index 8d05a34780deb573815cec453b198b1311e1996d..bcf685e6e3acdd948f1abcd89d8bf33228d44916 100644 (file)
@@ -93,7 +93,7 @@ void AtomBrowserMainParts::PreMainMessageLoopRun() {
   brightray::BrowserMainParts::PreMainMessageLoopRun();
 
 #if defined(USE_X11)
-  libgtk2ui::GtkInitFromCommandLine(*CommandLine::ForCurrentProcess());
+  libgtk2ui::GtkInitFromCommandLine(*base::CommandLine::ForCurrentProcess());
 #endif
 
 #if !defined(OS_MACOSX)
index c35acd5b8e7fb9117fbe15449e2020e3fa1f66ae..1fb3b260e0be5f79a3c0a516f4b370e0af4f9448 100644 (file)
@@ -131,7 +131,7 @@ void PrintWebViewHelper::PrintPageInternal(
   gfx::Rect canvas_area = content_area;
 
   skia::PlatformCanvas* canvas = metafile->GetVectorCanvasForNewPage(
-        *page_size, canvas_area, scale_factor);
+      page_size, canvas_area, scale_factor);
   if (!canvas)
     return;
 
@@ -139,7 +139,7 @@ void PrintWebViewHelper::PrintPageInternal(
   skia::SetIsDraftMode(*canvas, is_print_ready_metafile_sent_);
 
   RenderPageContent(frame, params.page_number, canvas_area, content_area,
-                    scale_factor, canvas.get());
+                    scale_factor, canvas);
 
   // Done printing. Close the device context to retrieve the compiled metafile.
   if (!metafile->FinishPage())
index 0e82eb7606e297542aca6eb2d8115a68630ffb39..c4bd9648905b805b7c45e4944ab6daeb08a6b8db 100644 (file)
@@ -210,7 +210,7 @@ void PrintWebViewHelper::PrintPageInternal(
                                                 canvas_area,
                                                 content_area,
                                                 scale_factor,
-                                                canvas.get());
+                                                canvas);
   DCHECK_GT(webkit_scale_factor, 0.0f);
   // Done printing. Close the device context to retrieve the compiled metafile.
   if (!metafile->FinishPage())
index 5493d5f8bde6226c051f766d2068aea118528da7..4670aeb7104172f9d22f02c8621a586d984055c6 160000 (submodule)
@@ -1 +1 @@
-Subproject commit 5493d5f8bde6226c051f766d2068aea118528da7
+Subproject commit 4670aeb7104172f9d22f02c8621a586d984055c6
index a636fad51e862d52c7bdb527c91300c85ed3c254..38aba072908357b4eebc68462714b01a9c2d0138 160000 (submodule)
@@ -1 +1 @@
-Subproject commit a636fad51e862d52c7bdb527c91300c85ed3c254
+Subproject commit 38aba072908357b4eebc68462714b01a9c2d0138