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

Side by Side Diff: chrome/browser/ui/bookmarks/bookmark_editor.cc

Issue 2276823003: Change many chrome/browser includes to use qualified paths. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "chrome/browser/ui/bookmarks/bookmark_editor.h" 5 #include "chrome/browser/ui/bookmarks/bookmark_editor.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "chrome/grit/generated_resources.h" 10 #include "chrome/grit/generated_resources.h"
11 #include "components/bookmarks/browser/bookmark_model.h" 11 #include "components/bookmarks/browser/bookmark_model.h"
12 #include "grit/components_strings.h" 12 #include "components/strings/grit/components_strings.h"
13 13
14 using bookmarks::BookmarkModel; 14 using bookmarks::BookmarkModel;
15 using bookmarks::BookmarkNode; 15 using bookmarks::BookmarkNode;
16 16
17 namespace { 17 namespace {
18 18
19 const BookmarkNode* CreateNewNode(BookmarkModel* model, 19 const BookmarkNode* CreateNewNode(BookmarkModel* model,
20 const BookmarkNode* parent, 20 const BookmarkNode* parent,
21 const BookmarkEditor::EditDetails& details, 21 const BookmarkEditor::EditDetails& details,
22 const base::string16& new_title, 22 const base::string16& new_title,
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 DCHECK(node); 166 DCHECK(node);
167 167
168 if (new_parent != node->parent()) 168 if (new_parent != node->parent())
169 model->Move(node, new_parent, new_parent->child_count()); 169 model->Move(node, new_parent, new_parent->child_count());
170 if (node->is_url()) 170 if (node->is_url())
171 model->SetURL(node, new_url); 171 model->SetURL(node, new_url);
172 model->SetTitle(node, new_title); 172 model->SetTitle(node, new_title);
173 173
174 return node; 174 return node;
175 } 175 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698