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

Side by Side Diff: components/bookmarks/browser/bookmark_node_data_views.cc

Issue 422673002: Move BookmarkNodeData into bookmarks namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix mac Created 6 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/bookmarks/browser/bookmark_node_data.h" 5 #include "components/bookmarks/browser/bookmark_node_data.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/pickle.h" 8 #include "base/pickle.h"
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "ui/base/clipboard/clipboard.h" 10 #include "ui/base/clipboard/clipboard.h"
11 11
12 namespace bookmarks {
13
12 namespace { 14 namespace {
13 15
14 const char kJavaScriptScheme[] = "javascript"; 16 const char kJavaScriptScheme[] = "javascript";
15 17
16 } // namespace 18 } // namespace
17 19
18 // static 20 // static
19 const ui::OSExchangeData::CustomFormat& 21 const ui::OSExchangeData::CustomFormat&
20 BookmarkNodeData::GetBookmarkCustomFormat() { 22 BookmarkNodeData::GetBookmarkCustomFormat() {
21 CR_DEFINE_STATIC_LOCAL( 23 CR_DEFINE_STATIC_LOCAL(
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 Element element; 64 Element element;
63 GURL url; 65 GURL url;
64 base::string16 title; 66 base::string16 title;
65 if (data.GetURLAndTitle( 67 if (data.GetURLAndTitle(
66 ui::OSExchangeData::CONVERT_FILENAMES, &url, &title)) 68 ui::OSExchangeData::CONVERT_FILENAMES, &url, &title))
67 ReadFromTuple(url, title); 69 ReadFromTuple(url, title);
68 } 70 }
69 71
70 return is_valid(); 72 return is_valid();
71 } 73 }
74
75 } // namespace bookmarks
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698