Fix cpplint warnings
authorCheng Zhao <zcbenz@gmail.com>
Mon, 23 May 2016 04:03:43 +0000 (13:03 +0900)
committerCheng Zhao <zcbenz@gmail.com>
Mon, 23 May 2016 04:03:43 +0000 (13:03 +0900)
atom/app/atom_main_delegate.cc
atom/browser/net/atom_url_request_job_factory.cc
atom/browser/net/atom_url_request_job_factory.h
atom/common/native_mate_converters/v8_value_converter.cc

index 82337dc5f6a6addb1d19f1138d5580e674498a0f..ff7ba0894f359ddc2d85d5d332637eaf30fd74dc 100644 (file)
@@ -134,7 +134,8 @@ content::ContentUtilityClient* AtomMainDelegate::CreateContentUtilityClient() {
   return utility_client_.get();
 }
 
-std::unique_ptr<brightray::ContentClient> AtomMainDelegate::CreateContentClient() {
+std::unique_ptr<brightray::ContentClient>
+AtomMainDelegate::CreateContentClient() {
   return std::unique_ptr<brightray::ContentClient>(new AtomContentClient);
 }
 
index 3bf332d0fb337f0fb7cebf6ab91b058f98096114..aff2565814b500ae5451ae6c49d61109c36e1c3f 100644 (file)
@@ -23,7 +23,8 @@ AtomURLRequestJobFactory::~AtomURLRequestJobFactory() {
 }
 
 bool AtomURLRequestJobFactory::SetProtocolHandler(
-    const std::string& scheme, std::unique_ptr<ProtocolHandler> protocol_handler) {
+    const std::string& scheme,
+    std::unique_ptr<ProtocolHandler> protocol_handler) {
   if (!protocol_handler) {
     ProtocolHandlerMap::iterator it = protocol_handler_map_.find(scheme);
     if (it == protocol_handler_map_.end())
@@ -41,7 +42,8 @@ bool AtomURLRequestJobFactory::SetProtocolHandler(
 }
 
 std::unique_ptr<ProtocolHandler> AtomURLRequestJobFactory::ReplaceProtocol(
-    const std::string& scheme, std::unique_ptr<ProtocolHandler> protocol_handler) {
+    const std::string& scheme,
+    std::unique_ptr<ProtocolHandler> protocol_handler) {
   if (!ContainsKey(protocol_handler_map_, scheme))
     return nullptr;
   ProtocolHandler* original_protocol_handler = protocol_handler_map_[scheme];
index ba7a4796f9a52c54cb1ebe5af71510f452c4c7f6..e3dbd7754240c07690e64b1970b77d6188274fdd 100644 (file)
@@ -24,13 +24,14 @@ class AtomURLRequestJobFactory : public net::URLRequestJobFactory {
   // Sets the ProtocolHandler for a scheme. Returns true on success, false on
   // failure (a ProtocolHandler already exists for |scheme|). On success,
   // URLRequestJobFactory takes ownership of |protocol_handler|.
-  bool SetProtocolHandler(
-      const std::string& scheme, std::unique_ptr<ProtocolHandler> protocol_handler);
+  bool SetProtocolHandler(const std::string& scheme,
+                          std::unique_ptr<ProtocolHandler> protocol_handler);
 
   // Intercepts the ProtocolHandler for a scheme. Returns the original protocol
   // handler on success, otherwise returns NULL.
   std::unique_ptr<ProtocolHandler> ReplaceProtocol(
-      const std::string& scheme, std::unique_ptr<ProtocolHandler> protocol_handler);
+      const std::string& scheme,
+      std::unique_ptr<ProtocolHandler> protocol_handler);
 
   // Returns the protocol handler registered with scheme.
   ProtocolHandler* GetProtocolHandler(const std::string& scheme) const;
index 13df524c34e5f41c1fb5f2a66bee742baf93033b..ff96b727e02a6d1b6d643b4ca3926822574d2d20 100644 (file)
@@ -371,7 +371,8 @@ base::Value* V8ValueConverter::FromV8Object(
       child_v8 = v8::Null(isolate);
     }
 
-    std::unique_ptr<base::Value> child(FromV8ValueImpl(state, child_v8, isolate));
+    std::unique_ptr<base::Value> child(
+        FromV8ValueImpl(state, child_v8, isolate));
     if (!child.get())
       // JSON.stringify skips properties whose values don't serialize, for
       // example undefined and functions. Emulate that behavior.