blob: 1ef27a9ea95054aae0854129159bba089c0810df (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/extensions/extension_module.h"
#include <string>
#include "chrome/browser/extensions/extension_prefs.h"
#include "chrome/browser/extensions/extension_service.h"
#include "chrome/browser/profiles/profile.h"
ExtensionPrefs* SetUpdateUrlDataFunction::extension_prefs() {
return profile()->GetExtensionService()->extension_prefs();
}
bool SetUpdateUrlDataFunction::RunImpl() {
std::string data;
EXTENSION_FUNCTION_VALIDATE(args_->GetString(0, &data));
extension_prefs()->SetUpdateUrlData(extension_id(), data);
return true;
}
|