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

Side by Side Diff: chrome/browser/ui/search_engines/template_url_table_model.cc

Issue 498773003: Use a qualified path for chromium_strings, google_chrome_strings, and generated_resources. (part 2 … (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/search_engines/template_url_table_model.h" 5 #include "chrome/browser/ui/search_engines/template_url_table_model.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/i18n/rtl.h" 8 #include "base/i18n/rtl.h"
9 #include "base/task/cancelable_task_tracker.h" 9 #include "base/task/cancelable_task_tracker.h"
10 #include "chrome/browser/favicon/favicon_service.h" 10 #include "chrome/browser/favicon/favicon_service.h"
11 #include "chrome/grit/generated_resources.h"
11 #include "components/favicon_base/favicon_types.h" 12 #include "components/favicon_base/favicon_types.h"
12 #include "components/search_engines/template_url.h" 13 #include "components/search_engines/template_url.h"
13 #include "components/search_engines/template_url_service.h" 14 #include "components/search_engines/template_url_service.h"
14 #include "grit/generated_resources.h"
15 #include "ui/base/l10n/l10n_util.h" 15 #include "ui/base/l10n/l10n_util.h"
16 #include "ui/base/models/table_model_observer.h" 16 #include "ui/base/models/table_model_observer.h"
17 #include "ui/base/resource/resource_bundle.h" 17 #include "ui/base/resource/resource_bundle.h"
18 #include "ui/gfx/image/image_skia.h" 18 #include "ui/gfx/image/image_skia.h"
19 #include "ui/resources/grit/ui_resources.h" 19 #include "ui/resources/grit/ui_resources.h"
20 20
21 // Group IDs used by TemplateURLTableModel. 21 // Group IDs used by TemplateURLTableModel.
22 static const int kMainGroupID = 0; 22 static const int kMainGroupID = 0;
23 static const int kOtherGroupID = 1; 23 static const int kOtherGroupID = 1;
24 static const int kExtensionGroupID = 2; 24 static const int kExtensionGroupID = 2;
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after
385 return entry.Pass(); 385 return entry.Pass();
386 } 386 }
387 387
388 void TemplateURLTableModel::AddEntry(int index, scoped_ptr<ModelEntry> entry) { 388 void TemplateURLTableModel::AddEntry(int index, scoped_ptr<ModelEntry> entry) {
389 entries_.insert(entries_.begin() + index, entry.release()); 389 entries_.insert(entries_.begin() + index, entry.release());
390 if (index <= last_other_engine_index_) 390 if (index <= last_other_engine_index_)
391 ++last_other_engine_index_; 391 ++last_other_engine_index_;
392 if (observer_) 392 if (observer_)
393 observer_->OnItemsAdded(index, 1); 393 observer_->OnItemsAdded(index, 1);
394 } 394 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/search/search_tab_helper_unittest.cc ('k') | chrome/browser/ui/startup/autolaunch_prompt_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698