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

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

Issue 1546143002: Switch to standard integer types in components/, part 1 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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
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 <string> 7 #include <string>
8 8
9 #include "base/pickle.h" 9 #include "base/pickle.h"
10 #include "base/strings/string_util.h" 10 #include "base/strings/string_util.h"
11 #include "base/strings/utf_string_conversions.h" 11 #include "base/strings/utf_string_conversions.h"
12 #include "build/build_config.h"
12 #include "components/bookmarks/browser/bookmark_utils.h" 13 #include "components/bookmarks/browser/bookmark_utils.h"
13 #include "ui/base/clipboard/scoped_clipboard_writer.h" 14 #include "ui/base/clipboard/scoped_clipboard_writer.h"
14 15
15 namespace bookmarks { 16 namespace bookmarks {
16 17
17 const char BookmarkNodeData::kClipboardFormatString[] = 18 const char BookmarkNodeData::kClipboardFormatString[] =
18 "chromium/x-bookmark-entries"; 19 "chromium/x-bookmark-entries";
19 20
20 BookmarkNodeData::Element::Element() : is_url(false), id_(0) { 21 BookmarkNodeData::Element::Element() : is_url(false), id_(0) {
21 } 22 }
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 profile_path_ = profile_path; 295 profile_path_ = profile_path;
295 } 296 }
296 297
297 bool BookmarkNodeData::IsFromProfilePath( 298 bool BookmarkNodeData::IsFromProfilePath(
298 const base::FilePath& profile_path) const { 299 const base::FilePath& profile_path) const {
299 // An empty path means the data is not associated with any profile. 300 // An empty path means the data is not associated with any profile.
300 return !profile_path_.empty() && profile_path_ == profile_path; 301 return !profile_path_.empty() && profile_path_ == profile_path;
301 } 302 }
302 303
303 } // namespace bookmarks 304 } // namespace bookmarks
OLDNEW
« no previous file with comments | « components/bookmarks/browser/bookmark_node_data.h ('k') | components/bookmarks/browser/bookmark_node_data_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698