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

Side by Side Diff: chrome/browser/dom_ui/options/search_engine_manager_handler.cc

Issue 5606002: Move:... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/dom_ui/options/search_engine_manager_handler.h" 5 #include "chrome/browser/dom_ui/options/search_engine_manager_handler.h"
6 6
7 #include "app/l10n_util.h" 7 #include "app/l10n_util.h"
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/string_number_conversions.h" 9 #include "base/string_number_conversions.h"
10 #include "base/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
11 #include "base/values.h" 11 #include "base/values.h"
12 #include "chrome/browser/profile.h" 12 #include "chrome/browser/profiles/profile.h"
13 #include "chrome/browser/search_engines/keyword_editor_controller.h" 13 #include "chrome/browser/search_engines/keyword_editor_controller.h"
14 #include "chrome/browser/search_engines/template_url.h" 14 #include "chrome/browser/search_engines/template_url.h"
15 #include "chrome/browser/search_engines/template_url_model.h" 15 #include "chrome/browser/search_engines/template_url_model.h"
16 #include "chrome/browser/search_engines/template_url_table_model.h" 16 #include "chrome/browser/search_engines/template_url_table_model.h"
17 #include "chrome/common/url_constants.h" 17 #include "chrome/common/url_constants.h"
18 #include "grit/generated_resources.h" 18 #include "grit/generated_resources.h"
19 #include "grit/locale_settings.h" 19 #include "grit/locale_settings.h"
20 20
21 namespace { 21 namespace {
22 22
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 string16 keyword; 289 string16 keyword;
290 std::string url; 290 std::string url;
291 if (!args->GetString(ENGINE_NAME, &name) || 291 if (!args->GetString(ENGINE_NAME, &name) ||
292 !args->GetString(ENGINE_KEYWORD, &keyword) || 292 !args->GetString(ENGINE_KEYWORD, &keyword) ||
293 !args->GetString(ENGINE_URL, &url)) { 293 !args->GetString(ENGINE_URL, &url)) {
294 NOTREACHED(); 294 NOTREACHED();
295 return; 295 return;
296 } 296 }
297 edit_controller_->AcceptAddOrEdit(name, keyword, url); 297 edit_controller_->AcceptAddOrEdit(name, keyword, url);
298 } 298 }
OLDNEW
« no previous file with comments | « chrome/browser/dom_ui/options/personal_options_handler.cc ('k') | chrome/browser/dom_ui/options/stop_syncing_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698