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

Unified Diff: components/dom_distiller/ios/distiller_page_ios.mm

Issue 1586833002: Convert Pass()→std::move() for iOS build. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert accidental //base change Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/dom_distiller/ios/distiller_page_ios.mm
diff --git a/components/dom_distiller/ios/distiller_page_ios.mm b/components/dom_distiller/ios/distiller_page_ios.mm
index b0e9a6e945108f239b36a468b5b93516b0f0f590..0009e5bdad0416ad2b6c4947d953dcad4f841c3a 100644
--- a/components/dom_distiller/ios/distiller_page_ios.mm
+++ b/components/dom_distiller/ios/distiller_page_ios.mm
@@ -6,6 +6,8 @@
#import <UIKit/UIKit.h>
+#include <utility>
+
#include "base/json/json_reader.h"
#include "base/logging.h"
#include "base/strings/sys_string_conversions.h"
@@ -107,7 +109,7 @@ void DistillerPageIOS::HandleJavaScriptResultString(NSString* result) {
base::JSONReader::Read(base::SysNSStringToUTF8(result));
if (dictionaryValue &&
dictionaryValue->IsType(base::Value::TYPE_DICTIONARY)) {
- resultValue = dictionaryValue.Pass();
+ resultValue = std::move(dictionaryValue);
}
}
OnDistillationDone(url_, resultValue.get());
« no previous file with comments | « chrome/browser/policy/profile_policy_connector_stub.cc ('k') | components/sessions/ios/ios_serialized_navigation_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698