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

Unified Diff: Source/core/platform/Pasteboard.cpp

Issue 23672027: Rename OS(WINDOWS) to OS(WIN) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 3 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
« no previous file with comments | « Source/core/page/Settings.cpp ('k') | Source/core/platform/audio/DenormalDisabler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/platform/Pasteboard.cpp
diff --git a/Source/core/platform/Pasteboard.cpp b/Source/core/platform/Pasteboard.cpp
index 6f4aa7639ca1e81eb6d1f3672c1822db21f27ea1..594cc79b6b4b532db8674a6ed6416f283b0f7ac2 100644
--- a/Source/core/platform/Pasteboard.cpp
+++ b/Source/core/platform/Pasteboard.cpp
@@ -82,7 +82,7 @@ void Pasteboard::writeSelection(Range* selectedRange, bool canSmartCopyOrDelete,
String html = createMarkup(selectedRange, 0, AnnotateForInterchange, false, ResolveNonLocalURLs);
KURL url = selectedRange->startContainer()->document().url();
String plainText = text;
-#if OS(WINDOWS)
+#if OS(WIN)
replaceNewlinesWithWindowsStyleNewlines(plainText);
#endif
replaceNBSPWithSpace(plainText);
@@ -93,7 +93,7 @@ void Pasteboard::writeSelection(Range* selectedRange, bool canSmartCopyOrDelete,
void Pasteboard::writePlainText(const String& text, SmartReplaceOption)
{
// FIXME: add support for smart replace
-#if OS(WINDOWS)
+#if OS(WIN)
String plainText(text);
replaceNewlinesWithWindowsStyleNewlines(plainText);
WebKit::Platform::current()->clipboard()->writePlainText(plainText);
« no previous file with comments | « Source/core/page/Settings.cpp ('k') | Source/core/platform/audio/DenormalDisabler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698